(Step 0A/700) OF APU2PROGRAM4XI5TEST - SENSING IT WITH YOURDRAGONXI! 08:25:27 02/18/15 FLE Standard Time ================================= (Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) 08:25:27 02/18/15 FLE Standard Time ================================= (Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) 08:25:27 02/18/15 FLE Standard Time (Step 01B/33) OF DENY2TRACE4XI - USING T2XI: (Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) 08:25:27 02/18/15 FLE Standard Time (Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: APU2Program4Xi (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: add2programwithbinary4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: add2programwithsource4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: build2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: compile2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2programwithbinary4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2programwithsource4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2sampler4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: delete2programwithbinary4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: delete2programwithsource4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: fetch2programbinary4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: fetch2programsource4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: get2programbuildinfo4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: get2programinfo4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: link2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: release2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: retain2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programcallback4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programwithbinary4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programwithsource4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: trace2program4apu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: unload2compiler4apu (Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: 08:25:27 02/18/15 FLE Standard Time (Step 1A/700) OF APU2PROGRAM4XI5TEST - STARTED 08:25:27 02/18/15 FLE Standard Time JATKA FOCUS 01 (Step 2A1/700) OF APU2PROGRAM4XI5TEST - TRYING TO CREATE PROGRAM SOURCE FOR APU 08:25:27 02/18/15 FLE Standard Time ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1A/70) started; create2programwithsource4apu-started: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': }; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (, ); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': , 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': , 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': , 'PIPE': (, ), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': , 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'>; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource = ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i < nLoops; i++) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid < entries) \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n"; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData { ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*size; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i > (NKData->size -5)) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,NKData->inData[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData->outData[i] = 2*NKData->inData[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /**/ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'>; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'>; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced ! ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = { ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' Classes, methods and messages with context.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' Sensing Sampler of APU.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' Sampler of APU sensed.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = { ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' Operations\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'operation_comment4xi': ' Operations for Sampler of APU.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' Operations with context.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' reason\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = { ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' Objects and values for Sampler of APU.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' Objects and values of Sampler of APU.\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' \n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' 000000\n', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test(): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (, ) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': } ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main(): ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__': ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main() ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'>; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4apu : fetch2programsource4apu ; (Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: ; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (, ); time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': , 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': , 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': , 'PIPE': (, ), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': , 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': , 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': , 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}, 'COUNT': 2, 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'SIZE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}, 'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'QUEUE': , 'PIPE': (, ), 'CODE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}, 'EVENT': {'FUNCTION2CALLBACK': , 'PIPE': (, ), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': , 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}, 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'LANGUAGE': 'Python', 'COUNT2REFERENCE': 1, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//a//', 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': , 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': , 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': , 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 33B/70) created; code-created-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include \n', 5: '#include \n', 6: '#include \n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i < nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid < entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*size; i++) {\n', 47: ' if (i > (NKData->size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData->inData[i]);\n', 49: ' NKData->outData[i] = 2*NKData->inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/**/\n', 54: ' \n', 55: '/**/\n', 73: ' \n', 74: '/**/\n', 82: '\n', 83: '/**/ \n', 120: '\n', 121: '/**/\n', 162: '\n', 163: '/**/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#\n', 4: '#\n', 5: '#\n', 6: '#\n', 7: '#\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '# \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '# \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '# \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '# \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # \n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '# \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '# \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '# \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '# \n', 485: '#\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 498: ' \'ontology_about4xi\': \' \\n\',\n', 499: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 500: ' \'class0_id4xi\': \' \\n\',\n', 501: ' \'class0_comment4xi\': \' Sensing Sampler of APU.\\n\',\n', 502: ' \'object_property_rdf4xi\': \' \\n\',\n', 503: ' \'object_property_comment4xi\': \' Sampler of APU sensed.\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 516: ' \'ontology_about4xi\': \' \\n\',\n', 517: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 518: ' \'operation_comment4xi\': \' Operations for Sampler of APU.\\n\',\n', 519: ' \'class0_id4xi\': \' \\n\',\n', 520: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 521: ' \'object_property_rdf4xi\': \' \\n\',\n', 522: ' \'object_property_comment4xi\': \' reason\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\\n\',\n', 535: ' \'ontology_about4xi\': \' \\n\',\n', 536: ' \'ontology_comment4xi\': \' Objects and values for Sampler of APU.\\n\',\n', 537: ' \'class0_id4xi\': \' \\n\',\n', 538: ' \'class0_comment4xi\': \' Objects and values of Sampler of APU.\\n\',\n', 539: ' \'object_property_rdf4xi\': \' \\n\',\n', 540: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '# \n', 555: '#\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : \n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (, )\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : \n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : \n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (, )\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : \n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # \n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (, ) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : \n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (, )\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : \n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # \n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # \n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : \n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (, )\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : \n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # \n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (, )\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : \n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (, )\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : \n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : \n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (, )\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : \n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': }\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': , 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': } \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '# \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '# \n', 1386: '#\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '# \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4apu : create2programwithsource4apu ; (Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time} ================================= (Step 2A2/700) OF APU2PROGRAM4XI5TEST - CREATED PROGRAM SOURCE FOR APU dict_keys(['PLATFORM', 'BUFFER', 'NACK2RETURN', 'CONTEXT', 'DATA2CALLBACK', 'ACK2RETURN', 'QUEUE', 'PIPE', 'SIZE4SOURCE', 'DIRECTORY4SOURCE', 'EVENT', 'DEVICE', 'CODE2ERROR', 'FUNCTION2CALLBACK', 'CODE4SOURCE', 'LANGUAGE4SOURCE', 'COUNT2REFERENCE', 'COUNT4SOURCE', 'COMMANDQUEUE']) COUNT4SOURCE: 2 DIRECTORY4SOURCE: e://scope4xi//041721//zap//lib//a// LANGUAGE4SOURCE: Python SIZE4SOURCE: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445} SOURCE: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp // ----------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------------------------- #include #include SOURCE: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py # # # # FOCUS 02 FOCUS 03 FOCUS 04 FOCUS 05 FOCUS 06 FOCUS 06 FOCUS 07 FOCUS 08 FOCUS 09 FOCUS 10 FOCUS 11 FOCUS 12 FOCUS 14 FOCUS 15 FOCUS 16 FOCUS 17 FOCUS 18 FOCUS 19 FOCUS 110 (Step 700/700) OF APU2PROGRAM4XI5TEST - DONE! 08:25:28 02/18/15 FLE Standard Time ================================= (STEP 1A/33) OF XML_TRACE_SENSE - TRYING TO WRITE SENSED KNOWLEDGEBASE ================================= (STEP 1B/33) OF XML_TRACE_SENSE - SET T2XI TO: (STEP 1B/33) OF XML_TRACE_SENSE - SET C2XI TO: {'ontology_about4xi': ' \n', 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', 'ontology_comment4xi': ' Classes, methods and messages with context.\n', 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2program4xi5test.xml', 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', 'class0_comment4xi': ' Sensing Program of APU.\n', 'object_property_rdf4xi': ' \n', 'debug4xi': True, 'class0_id4xi': ' \n', 'object_property_comment4xi': ' Program of APU sensed.\n'} (STEP 2A/33) OF XML_TRACE_SENSE - LEN2KB: 2316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000467 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000468 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000469 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000470 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000471 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000482 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000483 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000484 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000485 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000486 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000497 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000498 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000499 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000500 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000501 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000512 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000513 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000514 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000515 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000516 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000527 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000528 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000529 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000530 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000531 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000542 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000543 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000544 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000545 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000546 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000557 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000558 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000559 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000560 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000561 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000572 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000573 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000574 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000575 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000576 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000587 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000588 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000589 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000590 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000591 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000602 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000603 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000604 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000605 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000000606 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002308 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4apucreate2programwithsource4apu#000002316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000255 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000308 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000317 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000318 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000319 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000320 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000321 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000322 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000323 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000324 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000325 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000326 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000327 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000328 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000329 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000330 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000331 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000332 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000333 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000334 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000335 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000336 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000337 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000338 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000339 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000340 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000341 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000342 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000343 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000344 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000345 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000346 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000347 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000348 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000349 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000350 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000351 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000352 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000353 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000354 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000355 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000356 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000357 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000358 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000359 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000360 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000361 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000362 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000363 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000364 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000365 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000366 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000367 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000368 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000370 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000371 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000372 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000373 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000374 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000375 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000376 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000377 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000378 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000379 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000380 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000381 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000382 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000383 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000384 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000385 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000386 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000387 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000388 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000389 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000390 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000391 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000392 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000393 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000394 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000395 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000396 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000397 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000398 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000399 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000400 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000401 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000402 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000403 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000404 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000405 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000406 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000407 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000408 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000409 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000410 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000411 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000412 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000413 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000414 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000415 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000416 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000417 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000418 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000419 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000420 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000421 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000422 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000423 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000424 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000425 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000426 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000427 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000428 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000429 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000430 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000431 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000432 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000433 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000434 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000435 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000436 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000437 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000438 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000439 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000440 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000441 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000442 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000443 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000444 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000445 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000446 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000447 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000448 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000449 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000450 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000451 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000452 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000453 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000454 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000455 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000456 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000457 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000458 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000459 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000460 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000461 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000462 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000463 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000464 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000465 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000466 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000472 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000473 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000474 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000475 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000476 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000477 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000478 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000479 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000480 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000481 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000487 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000488 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000489 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000490 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000491 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000492 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000493 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000494 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000495 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000496 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000502 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000503 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000504 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000505 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000506 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000507 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000508 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000509 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000510 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000511 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000517 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000518 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000519 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000520 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000521 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000522 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000523 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000524 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000525 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000526 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000532 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000533 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000534 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000535 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000536 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000537 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000538 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000539 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000540 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000541 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000547 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000548 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000549 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000550 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000551 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000552 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000553 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000554 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000555 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000556 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000562 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000563 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000564 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000565 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000566 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000567 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000568 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000569 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000570 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000571 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000577 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000578 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000579 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000580 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000581 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000582 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000583 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000584 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000585 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000586 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000592 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000593 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000594 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000595 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000596 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000597 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000598 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000599 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000600 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000601 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000607 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000608 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000609 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000610 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000611 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000612 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000613 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000614 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000615 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000616 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000617 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000618 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000619 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000620 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000621 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000622 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000623 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000624 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000625 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000626 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000627 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000628 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000629 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000630 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000631 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000632 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000633 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000634 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000635 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000636 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000637 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000638 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000639 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000640 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000641 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000642 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000643 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000644 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000645 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000646 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000647 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000648 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000649 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000650 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000651 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000652 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000653 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000654 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000655 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000656 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000657 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000658 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000659 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000660 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000661 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000662 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000663 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000664 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000665 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000666 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000667 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000668 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000669 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000670 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000671 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000672 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000673 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000674 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000675 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000676 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000677 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000678 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000679 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000680 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000681 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000682 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000683 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000684 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000685 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000686 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000687 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000688 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000689 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000690 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000691 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000692 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000693 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000694 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000695 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000696 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000697 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000698 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000699 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000700 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000701 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000702 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000703 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000704 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000705 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000706 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000707 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000708 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000709 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000710 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000711 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000712 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000713 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000714 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000715 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000716 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000717 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000718 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000719 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000720 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000721 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000722 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000723 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000724 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000725 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000726 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000727 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000728 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000729 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000730 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000731 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000732 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000733 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000734 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000735 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000736 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000737 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000738 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000739 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000740 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000741 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000742 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000743 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000744 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000745 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000746 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000747 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000748 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000749 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000750 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000751 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000752 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000753 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000754 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000755 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000756 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000757 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000758 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000759 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000760 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000761 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000762 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000763 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000764 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000765 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000766 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000767 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000768 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000769 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000770 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000771 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000772 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000773 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000774 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000775 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000776 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000777 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000778 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000779 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000780 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000781 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000782 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000783 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000784 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000785 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000786 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000787 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000788 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000789 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000790 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000791 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000792 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000793 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000794 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000795 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000796 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000797 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000798 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000799 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000800 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000801 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000802 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000803 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000804 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000805 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000806 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000807 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000808 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000809 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000810 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000811 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000812 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000813 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000814 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000815 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000816 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000817 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000818 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000819 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000820 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000821 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000822 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000823 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000824 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000825 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000826 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000827 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000828 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000829 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000830 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000831 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000832 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000833 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000834 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000835 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000836 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000837 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000838 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000839 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000840 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000841 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000842 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000843 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000844 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000845 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000846 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000847 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000848 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000849 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000850 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000851 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000852 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000853 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000854 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000855 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000856 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000857 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000858 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000859 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000860 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000861 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000862 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000863 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000864 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000865 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000866 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000867 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000868 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000869 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000870 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000871 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000872 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000873 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000874 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000875 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000876 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000877 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000878 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000879 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000880 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000881 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000882 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000883 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000884 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000885 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000886 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000887 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000888 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000889 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000890 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000891 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000892 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000893 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000894 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000895 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000896 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000897 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000898 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000899 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000900 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000901 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000902 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000903 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000904 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000905 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000906 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000907 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000908 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000909 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000910 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000911 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000912 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000913 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000914 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000915 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000916 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000917 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000918 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000919 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000920 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000921 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000922 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000923 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000924 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000925 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000926 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000927 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000928 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000929 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000930 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000931 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000932 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000933 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000934 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000935 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000936 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000937 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000938 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000939 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000940 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000941 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000942 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000943 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000944 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000945 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000946 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000947 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000948 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000949 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000950 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000951 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000952 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000953 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000954 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000955 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000956 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000957 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000958 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000959 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000960 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000961 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000962 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000963 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000964 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000965 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000966 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000967 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000968 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000969 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000970 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000971 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000972 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000973 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000974 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000975 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000976 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000977 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000978 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000979 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000980 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000981 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000982 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000983 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000984 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000985 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000986 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000987 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000988 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000989 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000990 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000991 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000992 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000993 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000994 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000995 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000996 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000997 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000998 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000000999 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001000 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001255 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001308 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001317 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001318 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001319 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001320 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001321 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001322 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001323 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001324 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001325 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001326 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001327 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001328 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001329 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001330 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001331 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001332 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001333 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001334 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001335 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001336 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001337 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001338 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001339 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001340 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001341 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001342 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001343 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001344 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001345 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001346 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001347 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001348 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001349 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001350 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001351 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001352 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001353 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001354 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001355 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001356 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001357 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001358 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001359 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001360 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001361 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001362 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001363 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001364 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001365 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001366 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001367 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001368 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001370 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001371 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001372 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001373 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001374 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001375 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001376 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001377 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001378 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001379 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001380 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001381 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001382 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001383 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001384 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001385 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001386 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001387 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001388 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001389 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001390 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001391 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001392 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001393 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001394 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001395 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001396 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001397 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001398 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001399 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001400 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001401 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001402 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001403 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001404 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001405 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001406 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001407 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001408 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001409 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001410 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001411 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001412 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001413 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001414 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001415 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001416 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001417 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001418 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001419 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001420 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001421 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001422 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001423 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001424 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001425 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001426 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001427 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001428 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001429 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001430 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001431 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001432 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001433 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001434 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001435 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001436 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001437 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001438 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001439 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001440 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001441 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001442 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001443 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001444 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001445 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001446 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001447 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001448 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001449 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001450 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001451 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001452 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001453 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001454 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001455 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001456 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001457 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001458 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001459 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001460 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001461 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001462 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001463 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001464 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001465 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001466 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001467 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001468 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001469 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001470 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001471 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001472 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001473 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001474 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001475 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001476 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001477 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001478 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001479 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001480 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001481 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001482 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001483 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001484 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001485 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001486 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001487 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001488 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001489 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001490 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001491 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001492 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001493 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001494 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001495 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001496 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001497 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001498 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001499 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001500 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001501 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001502 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001503 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001504 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001505 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001506 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001507 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001508 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001509 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001510 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001511 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001512 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001513 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001514 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001515 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001516 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001517 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001518 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001519 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001520 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001521 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001522 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001523 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001524 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001525 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001526 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001527 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001528 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001529 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001530 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001531 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001532 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001533 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001534 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001535 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001536 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001537 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001538 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001539 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001540 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001541 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001542 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001543 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001544 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001545 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001546 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001547 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001548 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001549 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001550 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001551 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001552 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001553 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001554 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001555 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001556 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001557 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001558 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001559 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001560 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001561 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001562 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001563 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001564 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001565 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001566 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001567 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001568 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001569 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001570 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001571 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001572 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001573 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001574 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001575 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001576 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001577 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001578 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001579 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001580 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001581 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001582 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001583 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001584 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001585 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001586 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001587 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001588 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001589 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001590 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001591 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001592 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001593 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001594 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001595 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001596 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001597 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001598 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001599 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001600 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001601 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001602 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001603 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001604 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001605 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001606 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001607 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001608 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001609 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001610 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001611 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001612 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001613 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001614 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001615 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001616 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001617 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001618 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001619 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001620 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001621 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001622 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001623 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001624 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001625 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001626 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001627 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001628 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001629 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001630 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001631 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001632 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001633 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001634 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001635 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001636 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001637 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001638 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001639 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001640 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001641 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001642 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001643 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001644 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001645 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001646 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001647 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001648 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001649 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001650 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001651 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001652 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001653 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001654 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001655 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001656 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001657 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001658 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001659 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001660 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001661 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001662 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001663 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001664 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001665 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001666 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001667 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001668 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001669 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001670 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001671 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001672 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001673 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001674 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001675 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001676 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001677 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001678 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001679 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001680 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001681 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001682 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001683 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001684 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001685 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001686 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001687 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001688 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001689 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001690 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001691 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001692 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001693 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001694 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001695 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001696 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001697 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001698 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001699 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001700 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001701 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001702 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001703 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001704 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001705 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001706 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001707 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001708 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001709 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001710 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001711 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001712 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001713 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001714 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001715 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001716 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001717 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001718 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001719 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001720 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001721 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001722 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001723 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001724 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001725 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001726 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001727 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001728 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001729 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001730 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001731 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001732 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001733 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001734 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001735 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001736 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001737 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001738 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001739 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001740 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001741 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001742 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001743 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001744 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001745 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001746 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001747 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001748 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001749 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001750 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001751 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001752 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001753 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001754 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001755 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001756 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001757 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001758 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001759 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001760 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001761 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001762 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001763 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001764 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001765 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001766 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001767 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001768 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001769 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001770 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001771 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001772 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001773 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001774 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001775 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001776 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001777 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001778 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001779 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001780 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001781 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001782 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001783 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001784 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001785 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001786 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001787 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001788 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001789 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001790 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001791 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001792 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001793 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001794 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001795 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001796 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001797 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001798 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001799 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001800 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001801 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001802 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001803 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001804 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001805 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001806 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001807 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001808 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001809 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001810 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001811 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001812 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001813 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001814 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001815 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001816 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001817 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001818 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001819 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001820 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001821 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001822 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001823 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001824 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001825 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001826 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001827 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001828 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001829 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001830 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001831 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001832 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001833 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001834 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001835 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001836 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001837 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001838 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001839 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001840 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001841 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001842 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001843 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001844 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001845 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001846 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001847 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001848 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001849 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001850 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001851 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001852 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001853 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001854 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001855 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001856 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001857 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001858 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001859 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001860 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001861 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001862 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001863 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001864 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001865 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001866 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001867 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001868 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001869 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001870 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001871 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001872 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001873 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001874 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001875 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001876 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001877 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001878 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001879 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001880 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001881 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001882 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001883 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001884 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001885 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001886 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001887 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001888 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001889 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001890 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001891 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001892 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001893 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001894 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001895 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001896 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001897 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001898 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001899 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001900 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001901 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001902 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001903 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001904 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001905 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001906 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001907 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001908 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001909 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001910 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001911 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001912 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001913 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001914 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001915 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001916 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001917 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001918 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001919 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001920 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001921 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001922 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001923 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001924 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001925 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001926 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001927 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001928 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001929 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001930 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001931 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001932 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001933 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001934 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001935 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001936 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001937 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001938 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001939 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001940 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001941 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001942 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001943 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001944 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001945 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001946 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001947 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001948 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001949 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001950 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001951 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001952 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001953 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001954 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001955 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001956 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001957 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001958 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001959 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001960 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001961 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001962 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001963 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001964 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001965 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001966 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001967 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001968 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001969 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001970 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001971 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001972 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001973 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001974 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001975 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001976 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001977 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001978 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001979 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001980 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001981 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001982 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001983 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001984 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001985 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001986 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001987 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001988 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001989 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001990 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001991 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001992 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001993 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001994 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001995 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001996 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001997 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001998 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000001999 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002000 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4apufetch2programsource4apu#000002255 (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/70) started; create2programwithsource4apu-started: function create2programwithsource4apu at 0x02E15A08; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: class 'apu2program4xi.DirectoryWalker'; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}, 'COUNT': 2, 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'SIZE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}, 'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02ED9EB0, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210), 'CODE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}, 'EVENT': {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}, 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8, 'LANGUAGE': 'Python', 'COUNT2REFERENCE': 1, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//a//', 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 33B/70) created; code-created-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdlib.h ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdio.h ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include CL/opencl.h ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource = ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid entries) \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n"; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void myNativeKernel(void *data) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data passed to native kernel\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i NKData-size; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i (NKData-size -5)) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_ulong baseTime = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_ulong sTime,eTime; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (baseTime == -1) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: baseTime = sTime; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Failed to get times for %s\n",eventName); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void OCLError(cl_int err, int line) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Error at line %d\n",line); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: exit(1); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: v += dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pos_new[gti] = p; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: vel[gti] = v; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos2 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "main" usage = "main"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int main() { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // OpenCL Platform, Device etc vars ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id *Devices; // OpenCL device ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_context Context; // OpenCL context ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_platform_id Platform; // OpenCL platform ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_program Program; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Get platform IDs ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get all devices ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_uint nDevices = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a compute context ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a command queue ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute program from the source buffer ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute kernel from the program ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // kernel data vars ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *a_h; // host memory used for original data and return data ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem a_d; // device memory used for input/output ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem b_d; // device memory used for output ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t entries = 64000000; // number of entries in the array ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t local = 1; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int count = 100; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i =0; i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h[i] = (1 25) + 6; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k2Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k1Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Now try enqueueing a native kernel ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue CPUQueue = NULL; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id qDevID; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_type DevType; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_exec_capabilities DevExecCap; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the device attached to this queue ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the type of this device ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // compare the device_type for this device ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CPUQueue = CommandQs[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k3Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event eventLists[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[0] = k2Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[1] = k1Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (CPUQueue != NULL) { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #ifndef NATIVEK ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #else ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Allocate and populate the data structure for the nativeKernel ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData NKData; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData.size = entries; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem memList[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[0] = a_d; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[1] = b_d; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void *memLocs[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[0] = (NKData.inData); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[1] = (NKData.outData); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Enqueue the kernel ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #endif ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("No CPU device found\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // tidy up ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(Devices); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(CommandQs); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(a_h); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #profile4xi profile = "11" / ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #program4xi program = "apu2sampler4xi5test.py" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #abstract4xi abstract = "tests apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #verify4xi verification = "11" target = "apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #interface4xi interface = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __all__ = ['apu2sampler4xi5test'] ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #standardize4xi standard = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import os ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import sys ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import threading ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _thread ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import signal ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import itertools ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import weakref ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import logging ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import version4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #process4xi process = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _multiprocessing ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pipe4xi import Pipe4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platformids4xi import get2platformids4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from queue4xi import Queue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Command queue module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import APU2CommandQueue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import create2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import flush2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import finish2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import get2commandqueueinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import release2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import retain2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import set2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import trace2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Context module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import APU2Context4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import create2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import get2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import release2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import retain2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import set2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Device module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import APU4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import init2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import set2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import get2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Event module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import APU2Event4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import create2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import get2eventinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import release2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import retain2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2eventcallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import trace2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import wait2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Image module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import APU2Image4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import create2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2imageinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2supportedimageformats4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copybuffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2readimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2writeimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2mapimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2imagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2buffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import read2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import map2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import release2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import retain2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2imagecallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import trace2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import wait2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import write2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Sampler module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import APU2Sampler4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import create2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import get2samplerinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import release2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import retain2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2samplercallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import trace2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Platform module ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import init2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import set2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import get2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Trace modules ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2a4xi import Pickle2a4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2b4xi import Pickle2b4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2c4xi import Pickle2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2d4xi import Pickle2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2e4xi import Pickle2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2f4xi import Pickle2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2g4xi import Pickle2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2h4xi import Pickle2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2i4xi import Pickle2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2j4xi import Pickle2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2k4xi import Pickle2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2l4xi import Pickle2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2m4xi import Pickle2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2n4xi import Pickle2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2o4xi import Pickle2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2p4xi import Pickle2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2q4xi import Pickle2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2r4xi import Pickle2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2s4xi import Pickle2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2t4xi import Pickle2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2u4xi import Pickle2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2v4xi import Pickle2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2w4xi import Pickle2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2x4xi import Pickle2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2y4xi import Pickle2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2z4xi import Pickle2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2_4xi import Pickle2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2c4xi import Actor2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2d4xi import Actor2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2e4xi import Actor2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2f4xi import Actor2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2g4xi import Actor2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2h4xi import Actor2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2i4xi import Actor2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2j4xi import Actor2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2k4xi import Actor2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2l4xi import Actor2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2m4xi import Actor2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2n4xi import Actor2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2o4xi import Actor2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2p4xi import Actor2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2q4xi import Actor2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2r4xi import Actor2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2s4xi import Actor2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2t4xi import Actor2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2u4xi import Actor2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2v4xi import Actor2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2w4xi import Actor2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2x4xi import Actor2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2y4xi import Actor2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2z4xi import Actor2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2_4xi import Actor2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from time4xi import time4xi # time stamp to events ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #globalize4xi globalization = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: PickleKB4Xi = { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'a': Pickle2a4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'b': Pickle2b4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'c': Pickle2c4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'd': Pickle2d4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'e': Pickle2e4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'f': Pickle2f4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'g': Pickle2g4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'h': Pickle2h4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'i': Pickle2i4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'j': Pickle2j4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'k': Pickle2k4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'l': Pickle2l4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'm': Pickle2m4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'n': Pickle2n4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'o': Pickle2o4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'p': Pickle2p4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'q': Pickle2q4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'r': Pickle2r4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 's': Pickle2s4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 't': Pickle2t4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'u': Pickle2u4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'v': Pickle2v4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'w': Pickle2w4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'x': Pickle2x4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'y': Pickle2y4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'z': Pickle2z4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: '_': Pickle2_4Xi} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced ! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # deny trace using pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tailors trace ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: KB4Tailoring = { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'APU2Sampler4Xi': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'create2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'get2samplerinfo4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'retain2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'release2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'trace2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2samplercallback4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2sampler4apu': 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "print-trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print XML trace for sampler4apu test ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = { ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "apu2sampler4xi5test" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tests sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test(): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "main" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # main function for apu2sampler4xi5test ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main(): ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__': ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main() ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/program4xi ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #record4xi record = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi5test.txt ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # sense-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # reason-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ace-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #protect4xi protection = "copyright" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # owner = "Small Smart" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # rights = "All rights reserved" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # state = "California" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # country = "United States of America" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # compliance = "The California Law" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #end4xi end = " ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of apu2sampler4xi5test.py ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_sense4xi: filepath2xi: E:\scope4xi\041721\zap\web\xml\sense-apu2program4xi5test.xml xml_trace_sense4xi: opened f2xi: <_io.TextIOWrapper name='E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2program4xi5test.xml' mode='w' encoding='cp1252'> ================================= xml_trace_sense4xi: opened XML file: E:\scope4xi\041721\zap\web\xml\sense-apu2program4xi5test.xml ================================= --------------------------------- xml_trace_sense4xi: create header for XML file --------------------------------- --------------------------------- SENSING of xml_trace_sense4xi: create body for XML file --------------------------------- SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1A/70) started; create2programwithsource4apu-started: function create2programwithsource4apu at 0x02E15A08; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: class 'apu2program4xi.DirectoryWalker'; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}, 'COUNT': 2, 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'SIZE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}, 'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02ED9EB0, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210), 'CODE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}, 'EVENT': {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}, 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8, 'LANGUAGE': 'Python', 'COUNT2REFERENCE': 1, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//a//', 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 33B/70) created; code-created-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdlib.h ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdio.h ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include CL/opencl.h ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource = ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid entries) \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n"; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void myNativeKernel(void *data) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data passed to native kernel\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i NKData-size; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i (NKData-size -5)) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_ulong baseTime = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_ulong sTime,eTime; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (baseTime == -1) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: baseTime = sTime; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Failed to get times for %s\n",eventName); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void OCLError(cl_int err, int line) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Error at line %d\n",line); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: exit(1); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: v += dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pos_new[gti] = p; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: vel[gti] = v; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos2 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "main" usage = "main"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int main() { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // OpenCL Platform, Device etc vars ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id *Devices; // OpenCL device ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_context Context; // OpenCL context ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_platform_id Platform; // OpenCL platform ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_program Program; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Get platform IDs ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get all devices ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_uint nDevices = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a compute context ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a command queue ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute program from the source buffer ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute kernel from the program ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // kernel data vars ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *a_h; // host memory used for original data and return data ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem a_d; // device memory used for input/output ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem b_d; // device memory used for output ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t entries = 64000000; // number of entries in the array ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t local = 1; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int count = 100; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i =0; i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h[i] = (1 25) + 6; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k2Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k1Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Now try enqueueing a native kernel ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue CPUQueue = NULL; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id qDevID; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_type DevType; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_exec_capabilities DevExecCap; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the device attached to this queue ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the type of this device ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // compare the device_type for this device ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CPUQueue = CommandQs[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k3Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event eventLists[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[0] = k2Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[1] = k1Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (CPUQueue != NULL) { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #ifndef NATIVEK ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #else ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Allocate and populate the data structure for the nativeKernel ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData NKData; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData.size = entries; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem memList[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[0] = a_d; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[1] = b_d; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void *memLocs[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[0] = (NKData.inData); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[1] = (NKData.outData); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Enqueue the kernel ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #endif ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("No CPU device found\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // tidy up ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(Devices); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(CommandQs); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(a_h); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #profile4xi profile = "11" / ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #program4xi program = "apu2sampler4xi5test.py" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #abstract4xi abstract = "tests apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #verify4xi verification = "11" target = "apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #interface4xi interface = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __all__ = ['apu2sampler4xi5test'] ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #standardize4xi standard = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import os ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import sys ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import threading ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _thread ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import signal ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import itertools ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import weakref ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import logging ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import version4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #process4xi process = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _multiprocessing ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pipe4xi import Pipe4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platformids4xi import get2platformids4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from queue4xi import Queue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Command queue module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import APU2CommandQueue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import create2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import flush2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import finish2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import get2commandqueueinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import release2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import retain2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import set2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import trace2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Context module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import APU2Context4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import create2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import get2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import release2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import retain2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import set2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Device module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import APU4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import init2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import set2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import get2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Event module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import APU2Event4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import create2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import get2eventinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import release2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import retain2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2eventcallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import trace2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import wait2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Image module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import APU2Image4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import create2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2imageinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2supportedimageformats4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copybuffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2readimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2writeimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2mapimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2imagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2buffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import read2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import map2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import release2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import retain2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2imagecallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import trace2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import wait2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import write2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Sampler module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import APU2Sampler4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import create2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import get2samplerinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import release2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import retain2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2samplercallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import trace2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Platform module ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import init2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import set2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import get2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Trace modules ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2a4xi import Pickle2a4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2b4xi import Pickle2b4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2c4xi import Pickle2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2d4xi import Pickle2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2e4xi import Pickle2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2f4xi import Pickle2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2g4xi import Pickle2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2h4xi import Pickle2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2i4xi import Pickle2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2j4xi import Pickle2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2k4xi import Pickle2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2l4xi import Pickle2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2m4xi import Pickle2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2n4xi import Pickle2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2o4xi import Pickle2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2p4xi import Pickle2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2q4xi import Pickle2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2r4xi import Pickle2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2s4xi import Pickle2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2t4xi import Pickle2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2u4xi import Pickle2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2v4xi import Pickle2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2w4xi import Pickle2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2x4xi import Pickle2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2y4xi import Pickle2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2z4xi import Pickle2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2_4xi import Pickle2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2c4xi import Actor2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2d4xi import Actor2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2e4xi import Actor2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2f4xi import Actor2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2g4xi import Actor2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2h4xi import Actor2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2i4xi import Actor2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2j4xi import Actor2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2k4xi import Actor2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2l4xi import Actor2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2m4xi import Actor2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2n4xi import Actor2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2o4xi import Actor2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2p4xi import Actor2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2q4xi import Actor2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2r4xi import Actor2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2s4xi import Actor2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2t4xi import Actor2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2u4xi import Actor2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2v4xi import Actor2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2w4xi import Actor2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2x4xi import Actor2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2y4xi import Actor2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2z4xi import Actor2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2_4xi import Actor2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from time4xi import time4xi # time stamp to events ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #globalize4xi globalization = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: PickleKB4Xi = { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'a': Pickle2a4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'b': Pickle2b4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'c': Pickle2c4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'd': Pickle2d4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'e': Pickle2e4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'f': Pickle2f4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'g': Pickle2g4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'h': Pickle2h4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'i': Pickle2i4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'j': Pickle2j4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'k': Pickle2k4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'l': Pickle2l4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'm': Pickle2m4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'n': Pickle2n4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'o': Pickle2o4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'p': Pickle2p4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'q': Pickle2q4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'r': Pickle2r4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 's': Pickle2s4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 't': Pickle2t4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'u': Pickle2u4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'v': Pickle2v4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'w': Pickle2w4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'x': Pickle2x4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'y': Pickle2y4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'z': Pickle2z4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: '_': Pickle2_4Xi} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced ! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # deny trace using pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tailors trace ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: KB4Tailoring = { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'APU2Sampler4Xi': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'create2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'get2samplerinfo4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'retain2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'release2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'trace2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2samplercallback4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2sampler4apu': 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "print-trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print XML trace for sampler4apu test ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = { ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "apu2sampler4xi5test" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tests sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test(): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "main" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # main function for apu2sampler4xi5test ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main(): ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__': ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main() ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/program4xi ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #record4xi record = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi5test.txt ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # sense-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # reason-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ace-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #protect4xi protection = "copyright" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # owner = "Small Smart" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # rights = "All rights reserved" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # state = "California" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # country = "United States of America" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # compliance = "The California Law" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #end4xi end = " ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of apu2sampler4xi5test.py ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} --------------------------------- SENSING of xml_trace_sense4xi: create end for XML file --------------------------------- --------------------------------- xml_trace_sense4xi: trying to close XML file: E:\scope4xi\041721\zap\web\xml\sense-apu2program4xi5test.xml --------------------------------- --------------------------------- xml_trace_sense4xi: closed XML file: E:\scope4xi\041721\zap\web\xml\sense-apu2program4xi5test.xml --------------------------------- --------------------------------- xml_trace_sense4xi: returning 08:25:29 02/18/15 FLE Standard Time --------------------------------- (STEP 1A/33) OF XML_TRACE_REASON4XI - STARTED REASONING 08:25:29 02/18/15 FLE Standard Time (STEP 1B/33) OF XML_TRACE_REASON4XI - SET C2XI TO: {'ontology_about4xi': ' \n', 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', 'ontology_comment4xi': ' Operations\n', 'debug4xi': True, 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2program4xi5test.xml', 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', 'class0_comment4xi': ' Operations with context.\n', 'object_property_rdf4xi': ' \n', 'operation_comment4xi': ' Operations for Program of APU.\n', 'class0_id4xi': ' \n', 'object_property_comment4xi': ' reason\n'} (STEP 1C/33) OF XML_TRACE_REASON4XI - SET T2XI TO: (STEP 2A/33) OF XML_TRACE_REASON4XI - TRYING TO SET KNOWLEDGEBASE 08:25:29 02/18/15 FLE Standard Time (STEP 2B/33) OF XML_TRACE_REASON4XI - SET KNOWLEDGEBASE TO : {'readfetch2programsource4apufetch2programsource4apu#000000899': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000239': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: p += dt*v + 0.5f*dt*dt*a;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000690': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import APU2Context4Xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000453': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k3Event[0],"Kernel 3");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000480': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000886': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001068': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000664': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000950': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000338': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t local = 1;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000235': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002167': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000458': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(a_h);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000930': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000567': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001401': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001339': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000002255': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002250': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000313': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001165': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000541': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001863': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001570': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001414': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002206': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000031': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001967': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000184': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000462': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001107': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001678': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001654': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001780': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001760': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000675': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Command queue module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000768': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001797': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000894': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001295': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002197': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000716': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001087': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000159': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001747': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000079': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001927': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001576': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000637': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import sys\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000674': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000531': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001715': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002157': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000454': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001653': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000000005': "{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000058': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000725': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2imageinfo4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001623': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001156': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001358': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001857': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000691': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import create2context4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001347': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001620': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002127': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000672': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from queue4xi import Queue4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001973': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001170': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000002116': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000908': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000803': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000115': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001110': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002149': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001050': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000650': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001509': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000926': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000884': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001096': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "print-trace4xi" usage = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001626': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000638': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import threading \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001752': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000321': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000622': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001391': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000250': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000380': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000602': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000689': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001447': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000540': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002242': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001517': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001525': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000329': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute kernel from the program\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001848': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000813': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2i4xi import Actor2i4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002287': '{(Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001495': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000790': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2o4xi import Pickle2o4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000679': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import flush2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002065': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000555': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001302': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000261': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001555': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000017': '{(Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001005': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000667': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000523': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001988': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001599': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002019': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001421': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000796': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2u4xi import Pickle2u4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000126': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // -----------------------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000558': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000104': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001006': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001762': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001750': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001148': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000360': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000645': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002275': '{(Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000909': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001589': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001738': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000158': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000442': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000183': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_ulong sTime,eTime;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002099': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000603': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000304': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001742': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000590': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000543': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000749': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import APU2Sampler4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001235': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000390': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000604': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000626': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001230': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000391': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001211': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002067': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000119': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001365': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000927': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000722': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002133': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002014': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001154': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001652': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B02B00\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000303': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_uint nDevices = -1;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001980': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001852': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000990': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000232': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001025': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001545': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000213': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001015': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001573': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000739': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import retain2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001889': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001813': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001496': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001257': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000875': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 's': Pickle2s4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002205': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001975': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001608': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001935': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001022': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001462': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001283': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001406': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001384': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000155': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001140': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000212': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001811': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001070': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001092': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000865': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'i': Pickle2i4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001249': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001864': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000130': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdio.h\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001282': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001193': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001613': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001147': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001410': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002162': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001356': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000825': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2u4xi import Actor2u4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001825': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000357': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002045': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # state = "California"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002314': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002124': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000426': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[1] = (NKData.outData);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002001': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000018': "{(Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000536': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002131': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002299': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002077': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001209': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001284': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001072': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002023': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__':\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000496': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001198': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001540': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001262': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001879': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000008': "{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000465': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001566': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001507': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000424': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void *memLocs[2];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000578': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001765': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001319': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002181': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000089': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000647': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000127': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001860': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001842': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000456': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(Devices);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002198': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001214': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002095': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001246': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001969': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000736': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import read2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000230': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000584': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000264': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001790': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000385': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001913': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000000007': '{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000401': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001371': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001237': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000943': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000845': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001316': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001094': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000278': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001100': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001114': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001601': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000136': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000906': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001001': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002292': '{(Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000812': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2h4xi import Actor2h4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001088': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000719': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002143': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001835': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001978': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001101': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000680': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import finish2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001428': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001167': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tests sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000131': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include CL/opencl.h\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000325': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000441': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("No CPU device found\\n");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001308': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000215': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: )\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001884': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001779': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001393': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000040': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000011': '{(Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001704': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001351': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001327': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000752': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import release2sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000099': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000260': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002123': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000554': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000348': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000071': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001153': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001741': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001586': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000818': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2n4xi import Actor2n4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000701': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import APU4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000015': '{(Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002071': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000414': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001470': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000483': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001174': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001562': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001051': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001111': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000448': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000263': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4apucreate2programwithsource4apu#000002258': "{(Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000377': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002308': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001466': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000316': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001660': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000065': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001163': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001591': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000839': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001649': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001786': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001294': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000997': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002083': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000160': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001956': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000616': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001063': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'trace2sampler4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000849': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001713': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000096': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001641': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001355': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001066': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000829': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2y4xi import Actor2y4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001323': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000301': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000652': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000776': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2a4xi import Pickle2a4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002144': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001315': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001150': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001064': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2samplercallback4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000152': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000106': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001549': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000302': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get all devices\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002020': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002236': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001731': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000046': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000809': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2e4xi import Actor2e4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000094': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001081': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000866': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'j': Pickle2j4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'setfetch2programsource4apufetch2programsource4apu#000000475': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002126': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000490': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001363': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001522': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000476': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000129': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdlib.h\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001095': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002056': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of apu2sampler4xi5test.py \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001463': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002213': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001090': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001865': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000181': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void printKernelTimes(cl_event event,char *eventName) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001441': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000276': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000070': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000257': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002159': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001124': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001683': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000764': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import get2platforminfo4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000532': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001708': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002184': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002248': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001816': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002032': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi5test.txt\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000237': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001610': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000583': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001645': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000375': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_type DevType;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000556': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000343': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h[i] = (1 25) + 6;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000656': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000060': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000282': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001799': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001931': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001829': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001349': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001252': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001213': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001353': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001023': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001392': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001164': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001431': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000770': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001345': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'setfetch2programsource4apufetch2programsource4apu#000002074': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002109': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001979': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000989': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002247': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000610': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001659': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002104': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001202': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001836': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000497': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000118': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001902': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000587': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000178': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000643': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import weakref\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001048': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000777': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2b4xi import Pickle2b4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000820': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2p4xi import Actor2p4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002303': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001253': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001733': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002169': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000141': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001868': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001296': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002035': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ace-apu2sampler4xi5test.xml\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001125': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000450': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002043': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # owner = "Small Smart"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000516': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001244': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000718': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import wait2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000696': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000142': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001998': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # main function for apu2sampler4xi5test\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002224': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001510': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000069': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000146': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i nLoops; i++) { \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002004': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001983': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002101': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001866': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001986': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002049': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002165': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001774': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000167': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void myNativeKernel(void *data) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001444': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001012': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000904': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000765': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001133': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000946': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001753': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000107': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000992': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002080': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000139': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000408': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001597': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000706': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000727': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001326': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000514': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000913': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000619': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #verify4xi verification = "11" target = "apu2sampler4xi.py"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001038': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002138': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000350': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001452': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001798': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000204': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000210': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001373': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000928': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000305': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000889': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001754': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000814': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2j4xi import Actor2j4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001808': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000905': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000437': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000246': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001453': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000712': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import get2eventinfo4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001840': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001289': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000205': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001946': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002007': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000955': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001736': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000068': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000080': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001607': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001537': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000403': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000392': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CPUQueue = CommandQs[i];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000711': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import create2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000826': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2v4xi import Actor2v4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000501': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001773': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001648': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001873': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002295': '{(Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000293': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_platform_id Platform; // OpenCL platform\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000342': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i =0; i entries; i++)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001999': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002279': '{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002230': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001577': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000084': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000503': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001113': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000203': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: exit(1);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001501': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001079': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000577': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002223': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001225': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001859': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002232': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000353': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000019': '{(Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001528': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001291': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000957': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001759': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002053': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000561': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000296': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001370': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001216': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001380': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002176': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000624': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000249': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000284': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001464': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002253': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000704': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import get2apu4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000072': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000033': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001925': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001681': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000976': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000521': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002093': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001119': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001614': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000966': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001793': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002145': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001536': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002015': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001040': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001921': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002212': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002199': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002254': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000851': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002178': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000194': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001692': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001474': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001970': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001065': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2sampler4apu': 'NACK4XI' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001621': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002070': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001288': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001168': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001880': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000695': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import set2context4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000885': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000186': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'savedfetch2programsource4apufetch2programsource4apu#000002061': '{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002237': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001892': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001270': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000924': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000262': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002027': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002108': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001639': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000840': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002238': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000539': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000785': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2j4xi import Pickle2j4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001445': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001266': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000597': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001675': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000666': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001378': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000295': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue *CommandQs; // OpenCL command queues\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002282': "{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4apucreate2programwithsource4apu#000002277': '{(Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000294': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_program Program;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001314': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000169': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000351': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001687': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000374': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id qDevID;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002111': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001398': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001617': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000747': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Sampler module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002301': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001183': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000686': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001758': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000251': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002173': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001106': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000929': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000775': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000573': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002062': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000023': '{(Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001400': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001274': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000093': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000977': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001234': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001541': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001061': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'retain2sampler4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001417': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000756': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import trace2sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001208': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001948': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4apucreate2programwithsource4apu#000000025': '{(Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001468': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001145': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001228': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000248': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001129': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002228': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000092': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001499': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001847': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000789': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2n4xi import Pickle2n4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000665': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001387': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000751': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import get2samplerinfo4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000544': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000810': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2f4xi import Actor2f4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001091': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000869': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'm': Pickle2m4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002274': '{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000002089': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002182': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001714': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002284': "{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001893': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001267': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000847': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000352': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001083': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000334': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *a_h; // host memory used for original data and return data\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001634': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001849': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001508': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000782': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2g4xi import Pickle2g4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000787': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2l4xi import Pickle2l4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002152': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000461': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001277': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002002': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main():\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001523': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001385': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002256': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001637': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002316': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001425': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000833': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000791': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2p4xi import Pickle2p4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000999': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001311': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001563': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002201': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001325': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000673': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001698': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000162': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000314': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000575': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001908': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002069': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000366': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001748': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001018': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000988': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001243': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001190': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001199': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000234': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001625': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001158': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000772': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000322': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute program from the source buffer\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001438': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000452': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k1Event[0],"Kernel 1");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001490': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000551': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001126': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001227': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000499': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000193': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001667': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001242': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000931': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000228': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001624': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001972': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002193': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001602': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001484': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000974': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi():\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002128': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001221': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002003': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001084': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000983': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001033': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000076': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001814': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'createdcreate2programwithsource4apucreate2programwithsource4apu#000002291': '{(Step 33B/70) created; code-created-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001115': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000632': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001469': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001039': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000073': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002225': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001382': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001099': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000560': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001991': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001718': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001030': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000225': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001838': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000517': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001919': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001693': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000095': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001337': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001679': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001546': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000705': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001784': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002072': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001089': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000979': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002222': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000340': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002105': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001238': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000267': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000553': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000188': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (baseTime == -1)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002037': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001673': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000648': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000177': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000435': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002054': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #end4xi end = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001761': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002052': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001689': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001632': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000971': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # deny trace using pickle4xi functions !\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000345': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001516': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001130': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4apucreate2programwithsource4apu#000002260': '{(Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001026': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002267': '{(Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000052': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000430': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000527': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001930': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000837': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001844': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000639': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _thread \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000344': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001751': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001858': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000877': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'u': Pickle2u4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001102': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000542': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001161': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001996': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000948': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000242': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: vel[gti] = v;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001775': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000806': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001459': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000880': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'x': Pickle2x4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000014': '{(Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000914': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001954': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000942': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001697': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002122': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000207': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000738': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import release2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002221': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000841': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001534': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000745': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000002088': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000964': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001179': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001676': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001381': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000879': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'w': Pickle2w4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'setfetch2programsource4apufetch2programsource4apu#000000580': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001446': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000233': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000271': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001467': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000991': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001112': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000415': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #else\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingcreate2programwithsource4apucreate2programwithsource4apu#000000026': "{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: class 'apu2program4xi.DirectoryWalker'; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001821': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001255': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001032': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001195': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001896': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000892': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi():\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001407': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002163': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000359': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001285': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001725': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001782': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000196': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001109': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000002107': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002091': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002276': '{(Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000537': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001911': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000306': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001310': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000838': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000831': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2_4xi import Actor2_4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000627': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #interface4xi interface = " \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000735': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2buffertoimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001049': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000823': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2s4xi import Actor2s4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001853': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001680': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000114': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001827': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001232': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001491': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001901': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001305': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000367': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000750': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import create2sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001968': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000606': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001073': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001710': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000677': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import APU2CommandQueue4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001976': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002298': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001567': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000364': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002154': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000895': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002208': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000100': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000601': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001217': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000192': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001250': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001369': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002188': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000717': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import trace2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002096': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000657': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001945': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000600': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001272': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000405': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001465': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001408': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000428': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Enqueue the kernel\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000646': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000898': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001203': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000328': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002068': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000439': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000688': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Context module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000598': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000530': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001437': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001674': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002309': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000621': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001134': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001807': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002160': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001691': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001833': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001694': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001268': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001074': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000157': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000858': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001982': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000881': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'y': Pickle2y4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002216': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001963': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000041': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000283': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000529': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000198': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001628': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001823': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001021': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001792': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002210': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001348': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000337': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t entries = 64000000; // number of entries in the array\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000361': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k2Event[1];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001388': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000297': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000211': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000245': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001430': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001485': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000802': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2_4xi import Pickle2_4Xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000035': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002219': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001929': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001162': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000786': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2k4xi import Pickle2k4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000406': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001977': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001471': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001650': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'setcreate2programwithsource4apucreate2programwithsource4apu#000002259': '{(Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001478': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000317': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000830': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2z4xi import Actor2z4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001894': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000933': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001131': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000835': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_reason4xi import xml_trace_reason4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001269': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002307': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000269': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000995': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000629': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000376': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_exec_capabilities DevExecCap;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000165': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001394': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000459': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(a_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000122': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000807': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2c4xi import Actor2c4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000827': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2w4xi import Actor2w4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001098': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001764': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000221': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001722': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001547': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000623': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001526': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001279': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000967': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002050': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001887': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001076': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000662': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _multiprocessing\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002229': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000570': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000700': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002031': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #record4xi record = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001646': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000973': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002155': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002110': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001995': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001768': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000510': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001456': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001957': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000594': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001146': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002030': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001851': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001898': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002016': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002040': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000732': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2mapimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001688': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001993': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000852': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: PickleKB4Xi = {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000548': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000478': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002196': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001440': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001532': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000486': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000607': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000226': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001335': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000265': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002048': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # compliance = "The California Law"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001619': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000488': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001304': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000998': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000589': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000794': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2s4xi import Pickle2s4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000097': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001818': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001390': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000947': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000002073': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000449': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\\n",i,a_h[i]);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000859': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'd': Pickle2d4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002220': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000062': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002304': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001138': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000960': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001600': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001769': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001178': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000195': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000336': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem b_d; // device memory used for output \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000710': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import APU2Event4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001236': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000605': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001354': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001046': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001668': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002293': "{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001511': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001578': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002100': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000582': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000504': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001086': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000780': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2e4xi import Pickle2e4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002168': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000965': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000683': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import retain2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002028': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001777': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001745': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001519': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000938': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001719': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001497': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001606': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001850': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000692': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import get2context4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000121': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000170': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data passed to native kernel\\n");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001962': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000678': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import create2commandqueue4apu \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001776': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000944': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001964': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001794': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001870': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000229': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002156': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002134': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000844': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #globalize4xi globalization = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000793': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2r4xi import Pickle2r4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001207': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000746': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001909': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000148': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002211': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000769': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000634': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001041': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "tailor2trace4xi" usage = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002281': '{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000273': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001615': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001582': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001480': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001878': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002013': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000993': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001128': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001342': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000945': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000832': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from time4xi import time4xi # time stamp to events\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001000': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002008': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001770': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000726': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2supportedimageformats4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000799': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2x4xi import Pickle2x4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001682': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000000004': '{(Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000707': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000562': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002251': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001155': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001802': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000987': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000180': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000086': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001981': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000936': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000512': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000443': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000759': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Platform module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002233': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001881': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001136': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000970': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "deny2trace4xi" usage = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001259': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001117': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001058': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'APU2Sampler4Xi': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001656': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000911': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000355': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'decidedfetch2programsource4apufetch2programsource4apu#000000612': '{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001298': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001560': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001730': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000978': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001180': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000010': "{(Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000028': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001629': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001984': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000599': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002190': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002174': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001122': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000641': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import signal\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000383': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001966': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001952': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001959': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001263': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001184': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001424': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001757': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001121': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001524': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001556': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000617': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #program4xi program = "apu2sampler4xi5test.py"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000243': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001787': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001684': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000547': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000528': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001572': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002151': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001067': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001194': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000116': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002055': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000494': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001313': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001175': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000896': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002112': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001791': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001399': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000384': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000083': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002078': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002217': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002102': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001020': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000358': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000274': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002286': '{(Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001810': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002175': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000526': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000108': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001686': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001292': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002148': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001375': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000324': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000163': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000811': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2g4xi import Actor2g4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001402': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001423': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000016': '{(Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001920': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001869': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001427': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001950': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000549': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000767': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Trace modules \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002022': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000309': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000067': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001677': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000101': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001543': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000105': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001105': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000109': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001383': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001721': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000308': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001557': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001160': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000579': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002051': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002226': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001627': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001493': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000834': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001449': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002186': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001941': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001934': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000168': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001554': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000027': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000323': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002244': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001256': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002041': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000774': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000687': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002137': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000098': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000362': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k1Event[1];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000143': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000883': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: '_': Pickle2_4Xi} \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001636': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000564': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedcreate2programwithsource4apucreate2programwithsource4apu#000000002': '{(Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000455': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // tidy up\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000709': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001561': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001706': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001544': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001215': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000941': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001651': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000693': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import release2context4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002243': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001077': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001177': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'openedfetch2programsource4apufetch2programsource4apu#000000613': "{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001226': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001985': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001837': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000568': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002202': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000036': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000254': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000592': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000330': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001454': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002227': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001867': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000066': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002142': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001885': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001271': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000996': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000729': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copybuffertoimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002135': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001740': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001196': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000874': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'r': Pickle2r4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001448': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002215': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000670': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pipe4xi import Pipe4Xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001166': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "apu2sampler4xi5test" usage = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002271': '{(Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002263': '{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000200': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void OCLError(cl_int err, int line) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001594': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000843': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000341': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h = (float *)malloc(entries*sizeof(float));\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001965': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000244': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000655': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001635': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001928': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000029': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000138': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000572': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001231': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002194': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002025': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/program4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000247': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern(\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000087': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001897': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000400': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (CPUQueue != NULL) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000049': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001455': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002084': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001080': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002039': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000546': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001185': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002129': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002026': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000658': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001571': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001655': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002289': '{(Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000056': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000034': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000290': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // OpenCL Platform, Device etc vars\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000479': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001275': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001670': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002189': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001258': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000054': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000135': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000808': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2d4xi import Actor2d4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001276': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000381': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001579': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000473': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000500': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000733': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002249': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002239': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001011': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000224': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001531': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001034': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000236': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001069': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001598': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000937': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI':\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001590': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000412': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001078': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000002117': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000923': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002161': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001503': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000513': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002034': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # reason-apu2sampler4xi5test.xml\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001350': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001553': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000388': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002268': "{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001515': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001324': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000202': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Error at line %d\\n",line);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001533': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002011': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002147': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001309': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001588': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001832': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000042': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001205': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000002177': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001767': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000174': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData-outData[i] = 2*NKData-inData[i];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001336': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000515': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001475': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000734': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2imagetobuffer4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002139': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002113': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000291': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id *Devices; // OpenCL device\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001580': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002297': '{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000797': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2v4xi import Pickle2v4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000059': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000470': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001290': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000888': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000649': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001498': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000824': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2t4xi import Actor2t4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001019': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001726': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001135': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000660': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001663': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001229': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002057': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002042': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #protect4xi protection = "copyright"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000920': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000471': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001729': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002024': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001585': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000871': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'o': Pickle2o4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001411': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001711': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001958': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002136': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000120': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000741': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002288': '{(Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'decidedfetch2programsource4apufetch2programsource4apu#000000123': '{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000149': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001052': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000277': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002180': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001575': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001817': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000493': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000891': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001286': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002017': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001990': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000240': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: v += dt*a;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002036': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001854': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001669': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4apucreate2programwithsource4apu#000000024': '{(Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001574': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000635': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #standardize4xi standard = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001071': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000890': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000492': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000900': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002010': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002166': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001749': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001186': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000697': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000311': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000425': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[0] = (NKData.inData);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000636': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import os\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000332': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000300': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001416': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001812': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4apucreate2programwithsource4apu#000002269': '{(Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001874': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001482': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000368': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: //\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000466': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000699': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Device module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000939': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001915': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001116': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002218': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000039': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000395': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000550': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002047': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # codes = "Codes established in California and applicable to corporations in California"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'openedfetch2programsource4apufetch2programsource4apu#000000124': "{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001828': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001137': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000421': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[0] = a_d;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001260': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000887': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000773': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000299': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetPlatformIDs( 1, Platform, NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001690': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000940': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000949': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002120': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000565': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001093': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000684': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import set2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001169': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001278': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001924': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000373': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001609': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001855': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001943': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001013': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001187': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001700': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001618': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002006': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001434': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001420': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000460': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(b_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000954': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002265': '{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000286': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001755': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001886': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001460': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002315': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001822': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001487': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001247': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001476': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001804': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4apucreate2programwithsource4apu#000002296': '{(Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002146': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000509': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001905': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000953': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002033': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # sense-apu2sampler4xi5test.xml\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001788': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000618': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #abstract4xi abstract = "tests apu2sampler4xi.py"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'closedfetch2programsource4apufetch2programsource4apu#000000463': "{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001364': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000669': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000633': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000020': "{(Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001583': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000581': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000173': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\\n",i,NKData-inData[i]);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001647': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000002195': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000663': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002285': '{(Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'BUFFER\': {\'FUNCTION2CALLBACK\': function trace2buffer4apu at 0x02DB8348, \'CODE2ERROR\': 0, \'NACK2RETURN\': \' \', \'CONTEXT\': {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'SIZE2PRIVATE\': 0, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'FUNCTION2CALLBACK\': function trace2context4apu at 0x02CDD588, \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'METHOD\': \'create2context4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2context4apu\'}, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0, \'INFO2PRIVATE\': None}, \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-\', \'DEVICE\': {\'SIZE2MEMORY4LOCAL\': 32768, \'ROUND2NEAREST4EVEN\': \'ACK\', \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'RESOLUTION2TIMER4PROFILING\': 318, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'VERSION2DRIVER\': \'2.0\', \'TYPE2MEMORY4LOCAL\': \'Global\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'SIZE2LINE4CACHE\': 64, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'MAX2NUMBER4CONSTANTARGS\': 8, \'MAX2SIZE4WORKGROUP\': 1024, \'MAX2FREQUENCY4CLOCK\': 3210, \'MAX2DIMENSIONS4WORKITEMS\': 3, \'ID\': 4033, \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2CACHE\': 65536, \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2MEMORY4GLOBAL\': 3221225472, \'ENDIANESS2DEVICE\': \'Little\', \'SIZE2BUFFER4CONSTANT\': 65536, \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'PROFILE\': \'FULL_PROFILE\', \'TYPE\': \'CL_DEVICE_TYPE_APU\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'NATIVE2WIDTHINT4VECTOR\': 4, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'ACK2RETURN\': \' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-\', \'TYPE4CACHE\': \'Read/Write\', \'SUPPORT2IMAGE\': \'NACK\', \'EXTENSIONS\': \'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'MAX2UNITS4COMPUTE\': 4, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'QUIET2NANS\': \'ACK\', \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'MAX2WORKITEM2\': 1024, \'AVAILABLE\': \'ACK\', \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'BITS2ADDRESS\': 64, \'VENDOR\': \'AuthenticAMD\', \'SUPPORT2CORRECTION4ERROR\': 0, \'ROUND2ZERO\': \'ACK\', \'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'PREFERRED2WIDTHINT4VECTOR\': 4, \'PROFILING2QUEUE\': \'ACK\'}, \'POINTER2BUFFER\': mmap.mmap object at 0x02EEF8E0, \'DATA2CALLBACK\': {\'METHOD\': \'create2buffer4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2buffer4apu\'}, \'FLAGS\': 0, \'COUNT2REFERENCE\': 0, \'SIZE\': 278528}, \'COUNT\': 2, \'CONTEXT\': {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'SIZE2PRIVATE\': 0, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'FUNCTION2CALLBACK\': function trace2context4apu at 0x02CDD588, \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'METHOD\': \'create2context4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2context4apu\'}, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0, \'INFO2PRIVATE\': None}, \'SIZE\': {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': 337, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': 1445}, \'DATA2CALLBACK\': {\'METHOD\': \'create2programwithsource4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2programwithsource4apu\'}, \'QUEUE\': queue4xi.Queue4Xi object at 0x02ED9EB0, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210), \'CODE\': {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}, \'EVENT\': {\'FUNCTION2CALLBACK\': function trace2event4apu at 0x02CF7E88, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), \'NACK2RETURN\': \' \', \'CONTEXT\': {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'SIZE2PRIVATE\': 0, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'FUNCTION2CALLBACK\': function trace2context4apu at 0x02CDD588, \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'METHOD\': \'create2context4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2context4apu\'}, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0, \'INFO2PRIVATE\': None}, \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-\', \'DEVICE\': {\'SIZE2MEMORY4LOCAL\': 32768, \'ROUND2NEAREST4EVEN\': \'ACK\', \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'RESOLUTION2TIMER4PROFILING\': 318, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'VERSION2DRIVER\': \'2.0\', \'TYPE2MEMORY4LOCAL\': \'Global\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'SIZE2LINE4CACHE\': 64, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'MAX2NUMBER4CONSTANTARGS\': 8, \'MAX2SIZE4WORKGROUP\': 1024, \'MAX2FREQUENCY4CLOCK\': 3210, \'MAX2DIMENSIONS4WORKITEMS\': 3, \'ID\': 4033, \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2CACHE\': 65536, \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2MEMORY4GLOBAL\': 3221225472, \'ENDIANESS2DEVICE\': \'Little\', \'SIZE2BUFFER4CONSTANT\': 65536, \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'PROFILE\': \'FULL_PROFILE\', \'TYPE\': \'CL_DEVICE_TYPE_APU\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'NATIVE2WIDTHINT4VECTOR\': 4, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'ACK2RETURN\': \' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-\', \'TYPE4CACHE\': \'Read/Write\', \'SUPPORT2IMAGE\': \'NACK\', \'EXTENSIONS\': \'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'MAX2UNITS4COMPUTE\': 4, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'QUIET2NANS\': \'ACK\', \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'MAX2WORKITEM2\': 1024, \'AVAILABLE\': \'ACK\', \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'BITS2ADDRESS\': 64, \'VENDOR\': \'AuthenticAMD\', \'SUPPORT2CORRECTION4ERROR\': 0, \'ROUND2ZERO\': \'ACK\', \'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'PREFERRED2WIDTHINT4VECTOR\': 4, \'PROFILING2QUEUE\': \'ACK\'}, \'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'METHOD\': \'create2event4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2event4apu\'}, \'QUEUE\': queue4xi.Queue4Xi object at 0x02EDE490, \'COMMANDQUEUE\': {\'CONTEXT\': {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'SIZE2PRIVATE\': 0, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'FUNCTION2CALLBACK\': function trace2context4apu at 0x02CDD588, \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'METHOD\': \'create2context4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2context4apu\'}, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0, \'INFO2PRIVATE\': None}, \'DATA2CALLBACK\': {\'METHOD\': \'create2commandqueue4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2commandqueue4apu\'}, \'QUEUE\': queue4xi.Queue4Xi object at 0x02EDE530, \'INFO2PRIVATE\': None, \'PROPERTIES\': None, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-\', \'DEVICE\': {\'SIZE2MEMORY4LOCAL\': 32768, \'ROUND2NEAREST4EVEN\': \'ACK\', \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'RESOLUTION2TIMER4PROFILING\': 318, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'VERSION2DRIVER\': \'2.0\', \'TYPE2MEMORY4LOCAL\': \'Global\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'SIZE2LINE4CACHE\': 64, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'MAX2NUMBER4CONSTANTARGS\': 8, \'MAX2SIZE4WORKGROUP\': 1024, \'MAX2FREQUENCY4CLOCK\': 3210, \'MAX2DIMENSIONS4WORKITEMS\': 3, \'ID\': 4033, \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2CACHE\': 65536, \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2MEMORY4GLOBAL\': 3221225472, \'ENDIANESS2DEVICE\': \'Little\', \'SIZE2BUFFER4CONSTANT\': 65536, \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'PROFILE\': \'FULL_PROFILE\', \'TYPE\': \'CL_DEVICE_TYPE_APU\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'NATIVE2WIDTHINT4VECTOR\': 4, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'ACK2RETURN\': \' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-\', \'TYPE4CACHE\': \'Read/Write\', \'SUPPORT2IMAGE\': \'NACK\', \'EXTENSIONS\': \'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'MAX2UNITS4COMPUTE\': 4, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'QUIET2NANS\': \'ACK\', \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'MAX2WORKITEM2\': 1024, \'AVAILABLE\': \'ACK\', \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'BITS2ADDRESS\': 64, \'VENDOR\': \'AuthenticAMD\', \'SUPPORT2CORRECTION4ERROR\': 0, \'ROUND2ZERO\': \'ACK\', \'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'PREFERRED2WIDTHINT4VECTOR\': 4, \'PROFILING2QUEUE\': \'ACK\'}, \'CODE2ERROR\': 0, \'FUNCTION2CALLBACK\': function trace2commandqueue4apu at 0x02CC66A8, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0}}, \'DEVICE\': {\'SIZE2MEMORY4LOCAL\': 32768, \'ROUND2NEAREST4EVEN\': \'ACK\', \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'RESOLUTION2TIMER4PROFILING\': 318, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'VERSION2DRIVER\': \'2.0\', \'TYPE2MEMORY4LOCAL\': \'Global\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'SIZE2LINE4CACHE\': 64, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'MAX2NUMBER4CONSTANTARGS\': 8, \'MAX2SIZE4WORKGROUP\': 1024, \'MAX2FREQUENCY4CLOCK\': 3210, \'MAX2DIMENSIONS4WORKITEMS\': 3, \'ID\': 4033, \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2CACHE\': 65536, \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2MEMORY4GLOBAL\': 3221225472, \'ENDIANESS2DEVICE\': \'Little\', \'SIZE2BUFFER4CONSTANT\': 65536, \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'PROFILE\': \'FULL_PROFILE\', \'TYPE\': \'CL_DEVICE_TYPE_APU\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'NATIVE2WIDTHINT4VECTOR\': 4, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'ACK2RETURN\': \' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-\', \'TYPE4CACHE\': \'Read/Write\', \'SUPPORT2IMAGE\': \'NACK\', \'EXTENSIONS\': \'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'MAX2UNITS4COMPUTE\': 4, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'QUIET2NANS\': \'ACK\', \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'MAX2WORKITEM2\': 1024, \'AVAILABLE\': \'ACK\', \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'BITS2ADDRESS\': 64, \'VENDOR\': \'AuthenticAMD\', \'SUPPORT2CORRECTION4ERROR\': 0, \'ROUND2ZERO\': \'ACK\', \'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'PREFERRED2WIDTHINT4VECTOR\': 4, \'PROFILING2QUEUE\': \'ACK\'}, \'CODE2ERROR\': 0, \'FUNCTION2CALLBACK\': function trace2program4apu at 0x02E158E8, \'LANGUAGE\': \'Python\', \'COUNT2REFERENCE\': 1, \'DIRECTORY\': \'e://scope4xi//041721//zap//lib//a//\', \'COMMANDQUEUE\': {\'CONTEXT\': {\'PLATFORM\': {\'max2entries\': 1, \'nack2return\': \' \', \'available2platform\': 1, \'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\'}, \'SIZE2PRIVATE\': 0, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'FUNCTION2CALLBACK\': function trace2context4apu at 0x02CDD588, \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'METHOD\': \'create2context4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2context4apu\'}, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0, \'INFO2PRIVATE\': None}, \'DATA2CALLBACK\': {\'METHOD\': \'create2commandqueue4apu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}\', \'CLASS\': \'create2commandqueue4apu\'}, \'QUEUE\': queue4xi.Queue4Xi object at 0x02EDE170, \'INFO2PRIVATE\': None, \'PROPERTIES\': None, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-\', \'DEVICE\': {\'SIZE2MEMORY4LOCAL\': 32768, \'ROUND2NEAREST4EVEN\': \'ACK\', \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'RESOLUTION2TIMER4PROFILING\': 318, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'VERSION2DRIVER\': \'2.0\', \'TYPE2MEMORY4LOCAL\': \'Global\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'SIZE2LINE4CACHE\': 64, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'MAX2NUMBER4CONSTANTARGS\': 8, \'MAX2SIZE4WORKGROUP\': 1024, \'MAX2FREQUENCY4CLOCK\': 3210, \'MAX2DIMENSIONS4WORKITEMS\': 3, \'ID\': 4033, \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2CACHE\': 65536, \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2MEMORY4GLOBAL\': 3221225472, \'ENDIANESS2DEVICE\': \'Little\', \'SIZE2BUFFER4CONSTANT\': 65536, \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'PROFILE\': \'FULL_PROFILE\', \'TYPE\': \'CL_DEVICE_TYPE_APU\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'NATIVE2WIDTHINT4VECTOR\': 4, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'ACK2RETURN\': \' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-\', \'TYPE4CACHE\': \'Read/Write\', \'SUPPORT2IMAGE\': \'NACK\', \'EXTENSIONS\': \'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'MAX2UNITS4COMPUTE\': 4, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'QUIET2NANS\': \'ACK\', \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'MAX2WORKITEM2\': 1024, \'AVAILABLE\': \'ACK\', \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'BITS2ADDRESS\': 64, \'VENDOR\': \'AuthenticAMD\', \'SUPPORT2CORRECTION4ERROR\': 0, \'ROUND2ZERO\': \'ACK\', \'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'PREFERRED2WIDTHINT4VECTOR\': 4, \'PROFILING2QUEUE\': \'ACK\'}, \'CODE2ERROR\': 0, \'FUNCTION2CALLBACK\': function trace2commandqueue4apu at 0x02CC66A8, \'NACK2RETURN\': \' \', \'COUNT2REFERENCE\': 0}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000394': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001389': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000197': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001189': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000559': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'startedcreate2programwithsource4apucreate2programwithsource4apu#000000001': '{(Step 1A/70) started; create2programwithsource4apu-started: function create2programwithsource4apu at 0x02E15A08; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002170': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001127': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000484': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000219': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000002115': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002262': '{(Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000081': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000507': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002119': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002192': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000522': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001918': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000189': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: baseTime = sTime;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000402': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #ifndef NATIVEK\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000399': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[1] = k1Event[0];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001616': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001472': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000864': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'h': Pickle2h4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001518': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000288': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "main" usage = "main"*/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001834': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000557': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000781': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2f4xi import Pickle2f4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001994': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001717': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000153': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid entries) \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001014': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001479': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001671': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000103': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000371': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001300': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002038': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000935': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced !\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000958': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000258': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002290': '{(Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000778': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2c4xi import Pickle2c4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000216': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000222': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000333': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // kernel data vars\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000363': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000281': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001845': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000398': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[0] = k2Event[0];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000268': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002252': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000223': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002029': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000912': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000209': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern(\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000903': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001839': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001281': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002231': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001987': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000411': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000280': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001551': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001907': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000154': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002246': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000882': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'z': Pickle2z4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002063': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002066': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001900': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001409': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001223': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001504': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001054': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001922': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000571': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000804': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002118': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001405': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000805': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001960': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001192': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002257': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000585': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000231': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000609': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001699': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001923': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001057': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: KB4Tailoring = {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000661': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #process4xi process = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000668': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002018': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002302': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000256': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000702': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import init2apu4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000369': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Now try enqueueing a native kernel\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000133': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002012': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000817': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2m4xi import Actor2m4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000389': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // compare the device_type for this device\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001212': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000030': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000969': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000980': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001331': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000685': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import trace2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000959': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001379': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001045': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi():\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001037': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001142': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001512': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000653': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import version4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001082': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000088': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000044': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000487': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001971': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000498': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000287': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001264': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000000003': '{(Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001007': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001824': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001044': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001819': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001062': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'release2sampler4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000654': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000270': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001895': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001224': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001293': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002097': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001329': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001662': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000185': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001299': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002044': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # rights = "All rights reserved"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001442': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001301': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000524': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000821': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2q4xi import Actor2q4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001974': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000048': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001042': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tailors trace \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000761': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import PlatformInfo4Xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000253': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos2\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001891': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001581': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000387': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000681': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import get2commandqueueinfo4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000378': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the device attached to this queue\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001332': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002305': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001060': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'get2samplerinfo4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000762': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import init2platforminfo4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002313': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001695': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001506': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001568': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000045': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001197': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000468': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001771': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002076': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000057': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000819': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2o4xi import Actor2o4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002059': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001801': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001542': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001204': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000422': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[1] = b_d;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001320': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000783': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2h4xi import Pickle2h4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001906': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000742': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import trace2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000134': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000201': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000795': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2t4xi import Pickle2t4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001595': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001340': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000608': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001483': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001451': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000586': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001321': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002266': '{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000952': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000451': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k2Event[0],"Kernel 2");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001899': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000771': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001734': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001346': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001785': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000860': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001176': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001933': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002058': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001159': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001664': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000175': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001075': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001890': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001016': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000434': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000870': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'n': Pickle2n4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000410': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001938': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001415': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000740': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2imagecallback4apu \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000850': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000801': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2z4xi import Pickle2z4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002311': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000467': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000508': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001330': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000182': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_ulong baseTime = -1;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'savedfetch2programsource4apufetch2programsource4apu#000000464': '{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002310': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000588': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000842': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002082': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000339': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int count = 100;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000910': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002235': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001735': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000446': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000867': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'k': Pickle2k4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000784': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2i4xi import Pickle2i4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000676': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001457': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001492': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001709': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000897': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001171': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test():\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000495': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001245': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000593': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000382': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the type of this device\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000289': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int main() {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000272': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001593': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002209': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000694': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import retain2context4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000190': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001800': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000327': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000315': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a command queue\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000956': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001359': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002009': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000349': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001803': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000505': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002140': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000545': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001949': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001009': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000365': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000191': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Failed to get times for %s\\n",eventName);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001665': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001826': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000326': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000002090': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000934': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002132': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000053': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001366': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001521': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001422': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001584': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001666': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001502': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002204': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000671': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platformids4xi import get2platformids4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001596': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001912': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002164': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000800': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2y4xi import Pickle2y4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000902': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000396': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k3Event[1];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001558': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001805': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001374': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000113': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000082': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001333': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000630': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001395': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000320': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001157': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000418': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData.size = entries;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000868': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'l': Pickle2l4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000611': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001254': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000423': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001403': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001672': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002064': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001756': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001265': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001306': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000085': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000393': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001514': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000703': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import set2apu4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000002086': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000166': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000429': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000147': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001486': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000520': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001343': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000111': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001657': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000872': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'p': Pickle2p4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001539': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002114': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001017': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001550': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002150': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000816': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2l4xi import Actor2l4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001841': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001720': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000021': '{(Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001538': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000172': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i (NKData-size -5))\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001916': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001029': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001951': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000994': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000298': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Get platform IDs\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001936': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'setfetch2programsource4apufetch2programsource4apu#000000535': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001047': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001937': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002094': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001118': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000413': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000214': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000307': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000708': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Event module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000171': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i NKData-size; i++) {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002278': '{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001513': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001552': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002191': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000968': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001396': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'savingfetch2programsource4apufetch2programsource4apu#000000125': '{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002245': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000574': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000002171': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000861': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'e': Pickle2e4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000275': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000416': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Allocate and populate the data structure for the nativeKernel\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000217': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001024': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001612': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000090': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001318': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000279': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000431': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #endif\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000356': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 1, sizeof(int), count);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001640': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002270': "{(Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001251': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001530': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001505': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001716': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000748': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001529': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4apucreate2programwithsource4apu#000002294': '{(Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000855': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'b': Pickle2b4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001280': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000061': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000032': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002079': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000659': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001737': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingcreate2programwithsource4apucreate2programwithsource4apu#000002261': "{(Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001723': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000506': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001743': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000815': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2k4xi import Actor2k4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001191': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001097': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print XML trace for sampler4apu test\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001806': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000404': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000043': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000491': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000444': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000730': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2readimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000724': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import create2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000651': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000227': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001904': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001739': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001661': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001830': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001181': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000179': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001307': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000917': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000731': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2writeimage4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000757': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001903': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000893': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001953': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001846': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000002075': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000846': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001059': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'create2sampler4apu': 'NACK4XI',\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001003': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000206': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002280': "{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001173': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001123': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001287': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001564': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001053': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001565': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000002187': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001696': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000110': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000417': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData NKData;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001220': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001746': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001322': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000419': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000074': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002106': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000798': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2w4xi import Pickle2w4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000737': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import map2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001429': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001035': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000921': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000292': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_context Context; // OpenCL context\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001997': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "main" usage = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000962': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001010': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000407': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001877': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002092': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002241': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000755': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000901': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001783': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002172': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000002158': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {\'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// apu2dummy4xi5test.cpp\\n\', 3: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 4: \'#include stdlib.h\\n\', 5: \'#include stdio.h\\n\', 6: \'#include CL/opencl.h\\n\', 7: \'\\n\', 8: \'#define DEVID 0\\n\', 9: \'#define DEVID2 1\\n\', 10: \'\\n\', 11: \'// Program source\\n\', 12: \'const char* KernelSource =\\n\', 13: \'" __kernel void simple( __global float* A) { \\\\n"\\n\', 14: \'" int tid = get_global_id(0); \\\\n"\\n\', 15: \'" A[tid] = A[tid] + 5; \\\\n"\\n\', 16: \'"} \\\\n"\\n\', 17: \'" \\\\n"\\n\', 18: \'"__kernel void simple2(__global float *A, int nLoops) { \\\\n"\\n\', 19: \'" \\\\n"\\n\', 20: \'" int tid = get_global_id(0); \\\\n"\\n\', 21: \'" for (int i = 0; i nLoops; i++) { \\\\n"\\n\', 22: \'" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\\\n"\\n\', 23: \'" } \\\\n"\\n\', 24: \'"} \\\\n"\\n\', 25: \'"__kernel void simple3(__global float *A, __global float *B, int entries) { \\\\n"\\n\', 26: \'" \\\\n"\\n\', 27: \'" int tid = get_global_id(0); \\\\n"\\n\', 28: \'" if (tid entries) \\\\n"\\n\', 29: \'" B[tid] = 2 * A[tid]; \\\\n"\\n\', 30: \'" \\\\n"\\n\', 31: \'"} \\\\n";\\n\', 32: \'\\n\', 33: \'\\n\', 34: \' // native kernel data structure\\n\', 35: \'struct myNativeKernelData {\\n\', 36: \' float *inData;\\n\', 37: \' float *outData;\\n\', 38: \' int size;\\n\', 39: \'};\\n\', 40: \' \\n\', 41: \'/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \\n\', 42: \'void myNativeKernel(void *data) {\\n\', 43: \' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\\n\', 44: \'\\n\', 45: \' printf("Data passed to native kernel\\\\n");\\n\', 46: \' for (int i = 0; i NKData-size; i++) {\\n\', 47: \' if (i (NKData-size -5))\\n\', 48: \' printf("n, x = %d %f\\\\n",i,NKData-inData[i]);\\n\', 49: \' NKData-outData[i] = 2*NKData-inData[i];\\n\', 50: \' }\\n\', 51: \'\\n\', 52: \'}\\n\', 53: \'/*/function4xi*/\\n\', 54: \' \\n\', 55: \'/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \\n\', 56: \'void printKernelTimes(cl_event event,char *eventName) {\\n\', 57: \' static cl_ulong baseTime = -1;\\n\', 58: \' cl_ulong sTime,eTime;\\n\', 59: \' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\\n\', 60: \' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\\n\', 61: \'\\n\', 62: \' // Set the base time and then subtract it to make the numbers easier to read\\n\', 63: \' if (baseTime == -1)\\n\', 64: \' baseTime = sTime;\\n\', 65: \' if (err != CL_SUCCESS) {\\n\', 66: \' printf("Failed to get times for %s\\\\n",eventName);\\n\', 67: \' }\\n\', 68: \' else {\\n\', 69: \' printf("%s started at %ld, finished at %ld\\\\n",eventName,(sTime - baseTime),(eTime - baseTime));\\n\', 70: \' }\\n\', 71: \'}\\n\', 72: \'/*/function4xi*/\\n\', 73: \' \\n\', 74: \'/*function4xi function = "OCLError" usage = "error code checking"*/ \\n\', 75: \'void OCLError(cl_int err, int line) {\\n\', 76: \' if (err != CL_SUCCESS) {\\n\', 77: \' printf("Error at line %d\\\\n",line);\\n\', 78: \' exit(1);\\n\', 79: \' }\\n\', 80: \'}\\n\', 81: \'/*/function4xi*/\\n\', 82: \'\\n\', 83: \'/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\\n\', 84: \'__kernel void nbody_kern(\\n\', 85: \' float dt1, float eps,\\n\', 86: \' __global float4* pos_old,\\n\', 87: \' __global float4* pos_new,\\n\', 88: \' __global float4* vel,\\n\', 89: \' __local float4* pblock\\n\', 90: \' )\\n\', 91: \' {\\n\', 92: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 93: \' int gti = get_global_id(0);\\n\', 94: \' int ti = get_local_id(0);\\n\', 95: \' int n = get_global_size(0);\\n\', 96: \' int nt = get_local_size(0);\\n\', 97: \' int nb = n/nt;\\n\', 98: \' float4 p = pos_old[gti];\\n\', 99: \' float4 v = vel[gti];\\n\', 100: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 101: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 102: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 103: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 104: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 105: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 106: \' float4 d = p2 - p;\\n\', 107: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 108: \' float f = p2.w*invr*invr*invr;\\n\', 109: \' a += f*d; /* Accumulate acceleration */\\n\', 110: \' }\\n\', 111: \'\\n\', 112: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 113: \' }\\n\', 114: \' p += dt*v + 0.5f*dt*dt*a;\\n\', 115: \' v += dt*a;\\n\', 116: \' pos_new[gti] = p;\\n\', 117: \' vel[gti] = v;\\n\', 118: \' }\\n\', 119: \'/*/function4xi*/ \\n\', 120: \'\\n\', 121: \'/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\\n\', 122: \'__kernel void nbody_kern(\\n\', 123: \' float dt1, float eps,\\n\', 124: \' __global float4* pos_old,\\n\', 125: \' __global float4* pos_new,\\n\', 126: \' __global float4* vel,\\n\', 127: \' __local float4* pblock,\\n\', 128: \' __global float4* pos2\\n\', 129: \') {\\n\', 130: \' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\\n\', 131: \' int gti = get_global_id(0);\\n\', 132: \' int ti = get_local_id(0);\\n\', 133: \' int n = get_global_size(0);\\n\', 134: \' int nt = get_local_size(0);\\n\', 135: \' int nb = n/nt;\\n\', 136: \' float4 p = pos_old[gti];\\n\', 137: \' float4 v = vel[gti];\\n\', 138: \' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\\n\', 139: \' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\\n\', 140: \' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\\n\', 141: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 142: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 143: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 144: \' float4 d = p2 - p;\\n\', 145: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 146: \' float f = p2.w*invr*invr*invr;\\n\', 147: \' a += f*d; /* Accumulate acceleration */\\n\', 148: \' }\\n\', 149: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 150: \' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\\n\', 151: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\\n\', 152: \' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\\n\', 153: \' float4 p2 = pblock[j]; /* Read a cached particle position */\\n\', 154: \' float4 d = p2 - p;\\n\', 155: \' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\\n\', 156: \' float f = p2.w*invr*invr*invr;\\n\', 157: \' a += f*d; /* Accumulate acceleration */\\n\', 158: \' }\\n\', 159: \' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\\n\', 160: \' }\\t \\n\', 161: \'/*/function4xi*/\\n\', 162: \'\\n\', 163: \'/*function4xi function = "main" usage = "main"*/ \\n\', 164: \'int main() {\\n\', 165: \' // OpenCL Platform, Device etc vars\\n\', 166: \' cl_device_id *Devices; // OpenCL device\\n\', 167: \' cl_context Context; // OpenCL context\\n\', 168: \' static cl_platform_id Platform; // OpenCL platform\\n\', 169: \' cl_program Program;\\n\', 170: \' cl_command_queue *CommandQs; // OpenCL command queues\\n\', 171: \' cl_int err;\\n\', 172: \'\\n\', 173: \' // Get platform IDs\\n\', 174: \' err = clGetPlatformIDs( 1, Platform, NULL);\\n\', 175: \' OCLError(err,__LINE__);\\n\', 176: \'\\n\', 177: \' // get all devices\\n\', 178: \' cl_uint nDevices = -1;\\n\', 179: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\\n\', 180: \' OCLError(err,__LINE__);\\n\', 181: \' if (nDevices 3) { printf("Num Devices less than 3\\\\n"); exit(1); }\\n\', 182: \'\\n\', 183: \' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\\n\', 184: \' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\\n\', 185: \' OCLError(err,__LINE__);\\n\', 186: \'\\n\', 187: \' // Create a compute context \\n\', 188: \' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\\n\', 189: \' OCLError(err,__LINE__);\\n\', 190: \' // Create a command queue\\n\', 191: \' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\\n\', 192: \' for (int i = 0; i nDevices; i++) {\\n\', 193: \' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\\n\', 194: \' OCLError(err,__LINE__);\\n\', 195: \' }\\n\', 196: \'\\n\', 197: \' // Create the compute program from the source buffer\\n\', 198: \' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\\n\', 199: \' OCLError(err,__LINE__);\\n\', 200: \'\\n\', 201: \' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\\n\', 202: \' OCLError(err,__LINE__);\\n\', 203: \'\\n\', 204: \' // Create the compute kernel from the program\\n\', 205: \' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\\n\', 206: \' OCLError(err,__LINE__);\\n\', 207: \'\\n\', 208: \' // kernel data vars\\n\', 209: \' float *a_h; // host memory used for original data and return data\\n\', 210: \' cl_mem a_d; // device memory used for input/output \\n\', 211: \' cl_mem b_d; // device memory used for output \\n\', 212: \' size_t entries = 64000000; // number of entries in the array\\n\', 213: \' size_t local = 1;\\n\', 214: \' int count = 100;\\n\', 215: \'\\n\', 216: \' a_h = (float *)malloc(entries*sizeof(float));\\n\', 217: \' for (int i =0; i entries; i++)\\n\', 218: \' a_h[i] = (1 25) + 6;\\n\', 219: \' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\\n\', 220: \' OCLError(err,__LINE__);\\n\', 221: \' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\\n\', 222: \' OCLError(err,__LINE__);\\n\', 223: \'\\n\', 224: \'\\n\', 225: \' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\\n\', 226: \' OCLError(err,__LINE__);\\n\', 227: \' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\\n\', 228: \' OCLError(err,__LINE__);\\n\', 229: \' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\\n\', 230: \' OCLError(err,__LINE__);\\n\', 231: \' clSetKernelArg(Kernel2, 1, sizeof(int), count);\\n\', 232: \' OCLError(err,__LINE__);\\n\', 233: \'\\n\', 234: \' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\\n\', 235: \'\\n\', 236: \' cl_event k2Event[1];\\n\', 237: \' cl_event k1Event[1];\\n\', 238: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\\n\', 239: \' OCLError(err, __LINE__);\\n\', 240: \' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\\n\', 241: \' OCLError(err, __LINE__);\\n\', 242: \'\\n\', 243: \' //\\n\', 244: \' // Now try enqueueing a native kernel\\n\', 245: \' //\\n\', 246: \' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\\n\', 247: \' cl_command_queue CPUQueue = NULL;\\n\', 248: \' for (int i = 0; i nDevices; i++) {\\n\', 249: \' cl_device_id qDevID;\\n\', 250: \' cl_device_type DevType;\\n\', 251: \' cl_device_exec_capabilities DevExecCap;\\n\', 252: \'\\n\', 253: \' // get the device attached to this queue\\n\', 254: \' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\\n\', 255: \' OCLError(err, __LINE__);\\n\', 256: \'\\n\', 257: \' // get the type of this device\\n\', 258: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\\n\', 259: \' OCLError(err, __LINE__);\\n\', 260: \'\\n\', 261: \' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\\n\', 262: \' OCLError(err, __LINE__);\\n\', 263: \'\\n\', 264: \' // compare the device_type for this device\\n\', 265: \' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\\n\', 266: \' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\\n\', 267: \' CPUQueue = CommandQs[i];\\n\', 268: \' }\\n\', 269: \' }\\n\', 270: \'\\n\', 271: \' cl_event k3Event[1];\\n\', 272: \' cl_event eventLists[2];\\n\', 273: \' eventLists[0] = k2Event[0];\\n\', 274: \' eventLists[1] = k1Event[0];\\n\', 275: \' if (CPUQueue != NULL) {\\n\', 276: \'\\n\', 277: \'#ifndef NATIVEK\\n\', 278: \' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\\n\', 279: \' OCLError(err, __LINE__);\\n\', 280: \'\\n\', 281: \' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\\n\', 282: \' OCLError(err,__LINE__);\\n\', 283: \' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\\n\', 284: \' OCLError(err,__LINE__);\\n\', 285: \' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\\n\', 286: \' OCLError(err,__LINE__);\\n\', 287: \'\\n\', 288: \' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\\n\', 289: \' OCLError(err, __LINE__);\\n\', 290: \'#else\\n\', 291: \' // Allocate and populate the data structure for the nativeKernel\\n\', 292: \' struct myNativeKernelData NKData;\\n\', 293: \' NKData.size = entries;\\n\', 294: \'\\n\', 295: \' cl_mem memList[2];\\n\', 296: \' memList[0] = a_d;\\n\', 297: \' memList[1] = b_d;\\n\', 298: \'\\n\', 299: \' void *memLocs[2];\\n\', 300: \' memLocs[0] = (NKData.inData);\\n\', 301: \' memLocs[1] = (NKData.outData);\\n\', 302: \'\\n\', 303: \' // Enqueue the kernel\\n\', 304: \' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\\n\', 305: \' OCLError(err, __LINE__);\\n\', 306: \'#endif\\n\', 307: \'\\n\', 308: \' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\\n\', 309: \' OCLError(err, __LINE__);\\n\', 310: \'\\n\', 311: \' printf("Data from b_d\\\\n");\\n\', 312: \' for (int i = (entries - 5); i entries; i++)\\n\', 313: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 314: \' }\\n\', 315: \' else {\\n\', 316: \' printf("No CPU device found\\\\n");\\n\', 317: \' }\\n\', 318: \'\\n\', 319: \' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\\n\', 320: \' OCLError(err, __LINE__);\\n\', 321: \'\\n\', 322: \' printf("Data from a_d, should be half of data from b_d\\\\n");\\n\', 323: \' for (int i = (entries - 5); i entries; i++)\\n\', 324: \' printf("n, x = %d %f\\\\n",i,a_h[i]);\\n\', 325: \'\\n\', 326: \' printKernelTimes(k2Event[0],"Kernel 2");\\n\', 327: \' printKernelTimes(k1Event[0],"Kernel 1");\\n\', 328: \' printKernelTimes(k3Event[0],"Kernel 3");\\n\', 329: \'\\n\', 330: \' // tidy up\\n\', 331: \' free(Devices);\\n\', 332: \' free(CommandQs);\\n\', 333: \' free(a_h);\\n\', 334: \' clReleaseMemObject(a_d);\\n\', 335: \' clReleaseMemObject(b_d);\\n\', 336: \'}\\n\', 337: \'/*/function4xi*/\\n\'}, \'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "apu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests apu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "apu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'apu2sampler4xi5test\'] \\n", 15: \'#"\\n\', 16: \'#/\\n\', 17: \'\\n\', 18: \'# -------------------------------------------------------------------------------------------------\\n\', 19: \'# Standard Imports \\n\', 20: \'# -------------------------------------------------------------------------------------------------\\n\', 21: \'#standardize4xi standard = "\\n\', 22: \'import os\\n\', 23: \'import sys\\n\', 24: \'import threading \\n\', 25: \'import _thread \\n\', 26: \'\\n\', 27: \'import signal\\n\', 28: \'import itertools\\n\', 29: \'import weakref\\n\', 30: \'import logging \\n\', 31: \'#"\\n\', 32: \'#/\\n\', 33: \'\\n\', 34: \'\\n\', 35: \'# -------------------------------------------------------------------------------------------------\\n\', 36: \'# Scope4Xi imports \\n\', 37: \'# -------------------------------------------------------------------------------------------------\\n\', 38: \'#dragonize4xi dragonization = "\\n\', 39: \'import version4xi\\n\', 40: \' \\n\', 41: \'#"\\n\', 42: \'#/\\n\', 43: \'\\n\', 44: \'# -------------------------------------------------------------------------------------------------\\n\', 45: \'# Multiprocessing Imports \\n\', 46: \'# -------------------------------------------------------------------------------------------------\\n\', 47: \'#process4xi process = "\\n\', 48: \'import _multiprocessing\\n\', 49: \'#"\\n\', 50: \'#/ \\n\', 51: \'\\n\', 52: \'# -------------------------------------------------------------------------------------------------\\n\', 53: \'# DragonXi imports \\n\', 54: \'# -------------------------------------------------------------------------------------------------\\n\', 55: \'#dragonize4xi dragonization = "\\n\', 56: \'from pipe4xi import Pipe4Xi \\n\', 57: \'from platformids4xi import get2platformids4xi\\n\', 58: \'from queue4xi import Queue4Xi\\n\', 59: \'\\n\', 60: \'# -------------------------------------------------------------------------------------------------\\n\', 61: \'# Command queue module \\n\', 62: \'# -------------------------------------------------------------------------------------------------\\n\', 63: \'from apu2commandqueue4xi import APU2CommandQueue4Xi\\n\', 64: \'from apu2commandqueue4xi import create2commandqueue4apu \\n\', 65: \'from apu2commandqueue4xi import flush2commandqueue4apu\\n\', 66: \'from apu2commandqueue4xi import finish2commandqueue4apu\\n\', 67: \'from apu2commandqueue4xi import get2commandqueueinfo4apu\\n\', 68: \'from apu2commandqueue4xi import release2commandqueue4apu\\n\', 69: \'from apu2commandqueue4xi import retain2commandqueue4apu\\n\', 70: \'from apu2commandqueue4xi import set2commandqueue4apu\\n\', 71: \'from apu2commandqueue4xi import trace2commandqueue4apu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from apu2context4xi import APU2Context4Xi \\n\', 77: \'from apu2context4xi import create2context4apu\\n\', 78: \'from apu2context4xi import get2context4apu\\n\', 79: \'from apu2context4xi import release2context4apu\\n\', 80: \'from apu2context4xi import retain2context4apu\\n\', 81: \'from apu2context4xi import set2context4apu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from apu2device4xi import APU4Xi\\n\', 88: \'from apu2device4xi import init2apu4xi \\n\', 89: \'from apu2device4xi import set2apu4xi\\n\', 90: \'from apu2device4xi import get2apu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from apu2event4xi import APU2Event4Xi\\n\', 97: \'from apu2event4xi import create2event4apu\\n\', 98: \'from apu2event4xi import get2eventinfo4apu\\n\', 99: \'from apu2event4xi import release2event4apu\\n\', 100: \'from apu2event4xi import retain2event4apu\\n\', 101: \'from apu2event4xi import set2eventcallback4apu \\n\', 102: \'from apu2event4xi import set2event4apu\\n\', 103: \'from apu2event4xi import trace2event4apu\\n\', 104: \'from apu2event4xi import wait2event4apu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from apu2image4xi import APU2Image4Xi\\n\', 110: \'from apu2image4xi import create2image4apu\\n\', 111: \'from apu2image4xi import get2imageinfo4apu\\n\', 112: \'from apu2image4xi import get2supportedimageformats4apu\\n\', 113: \'from apu2image4xi import manoeuvre2copyimage4apu\\n\', 114: \'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\\n\', 115: \'from apu2image4xi import manoeuvre2copybuffertoimage4apu\\n\', 116: \'from apu2image4xi import manoeuvre2readimage4apu\\n\', 117: \'from apu2image4xi import manoeuvre2writeimage4apu\\n\', 118: \'from apu2image4xi import manoeuvre2mapimage4apu\\n\', 119: \'from apu2image4xi import copy2image4apu\\n\', 120: \'from apu2image4xi import copy2imagetobuffer4apu\\n\', 121: \'from apu2image4xi import copy2buffertoimage4apu\\n\', 122: \'from apu2image4xi import read2image4apu\\n\', 123: \'from apu2image4xi import map2image4apu\\n\', 124: \'from apu2image4xi import release2image4apu\\n\', 125: \'from apu2image4xi import retain2image4apu\\n\', 126: \'from apu2image4xi import set2imagecallback4apu \\n\', 127: \'from apu2image4xi import set2image4apu\\n\', 128: \'from apu2image4xi import trace2image4apu\\n\', 129: \'from apu2image4xi import wait2image4apu\\n\', 130: \'from apu2image4xi import write2image4apu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from apu2sampler4xi import APU2Sampler4Xi\\n\', 136: \'from apu2sampler4xi import create2sampler4apu\\n\', 137: \'from apu2sampler4xi import get2samplerinfo4apu\\n\', 138: \'from apu2sampler4xi import release2sampler4apu\\n\', 139: \'from apu2sampler4xi import retain2sampler4apu\\n\', 140: \'from apu2sampler4xi import set2samplercallback4apu \\n\', 141: \'from apu2sampler4xi import set2sampler4apu\\n\', 142: \'from apu2sampler4xi import trace2sampler4apu\\n\', 143: \'\\n\', 144: \'# -------------------------------------------------------------------------------------------------\\n\', 145: \'# Platform module \\n\', 146: \'# -------------------------------------------------------------------------------------------------\\n\', 147: \'from platforminfo4xi import PlatformInfo4Xi \\n\', 148: \'from platforminfo4xi import init2platforminfo4xi\\n\', 149: \'from platforminfo4xi import set2platforminfo4xi\\n\', 150: \'from platforminfo4xi import get2platforminfo4xi\\n\', 151: \'\\n\', 152: \'# -------------------------------------------------------------------------------------------------\\n\', 153: \'# Trace modules \\n\', 154: \'# -------------------------------------------------------------------------------------------------\\n\', 155: \'\\n\', 156: \' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\\n\', 157: \' \\n\', 158: \'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\\n\', 159: \'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\\n\', 160: \'\\n\', 161: \'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\\n\', 162: \'from pickle2a4xi import Pickle2a4Xi\\n\', 163: \'from pickle2b4xi import Pickle2b4Xi\\n\', 164: \'from pickle2c4xi import Pickle2c4Xi\\n\', 165: \'from pickle2d4xi import Pickle2d4Xi\\n\', 166: \'from pickle2e4xi import Pickle2e4Xi\\n\', 167: \'from pickle2f4xi import Pickle2f4Xi\\n\', 168: \'from pickle2g4xi import Pickle2g4Xi\\n\', 169: \'from pickle2h4xi import Pickle2h4Xi\\n\', 170: \'from pickle2i4xi import Pickle2i4Xi\\n\', 171: \'from pickle2j4xi import Pickle2j4Xi\\n\', 172: \'from pickle2k4xi import Pickle2k4Xi\\n\', 173: \'from pickle2l4xi import Pickle2l4Xi\\n\', 174: \'from pickle2m4xi import Pickle2m4Xi\\n\', 175: \'from pickle2n4xi import Pickle2n4Xi\\n\', 176: \'from pickle2o4xi import Pickle2o4Xi\\n\', 177: \'from pickle2p4xi import Pickle2p4Xi\\n\', 178: \'from pickle2q4xi import Pickle2q4Xi\\n\', 179: \'from pickle2r4xi import Pickle2r4Xi\\n\', 180: \'from pickle2s4xi import Pickle2s4Xi\\n\', 181: \'from pickle2t4xi import Pickle2t4Xi\\n\', 182: \'from pickle2u4xi import Pickle2u4Xi\\n\', 183: \'from pickle2v4xi import Pickle2v4Xi\\n\', 184: \'from pickle2w4xi import Pickle2w4Xi\\n\', 185: \'from pickle2x4xi import Pickle2x4Xi\\n\', 186: \'from pickle2y4xi import Pickle2y4Xi\\n\', 187: \'from pickle2z4xi import Pickle2z4Xi\\n\', 188: \'from pickle2_4xi import Pickle2_4Xi \\n\', 189: \'\\n\', 190: \' \\n\', 191: \'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \\n\', 192: \'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\\n\', 193: \'from actor2c4xi import Actor2c4Xi\\n\', 194: \'from actor2d4xi import Actor2d4Xi\\n\', 195: \'from actor2e4xi import Actor2e4Xi\\n\', 196: \'from actor2f4xi import Actor2f4Xi\\n\', 197: \'from actor2g4xi import Actor2g4Xi\\n\', 198: \'from actor2h4xi import Actor2h4Xi\\n\', 199: \'from actor2i4xi import Actor2i4Xi\\n\', 200: \'from actor2j4xi import Actor2j4Xi\\n\', 201: \'from actor2k4xi import Actor2k4Xi\\n\', 202: \'from actor2l4xi import Actor2l4Xi\\n\', 203: \'from actor2m4xi import Actor2m4Xi\\n\', 204: \'from actor2n4xi import Actor2n4Xi\\n\', 205: \'from actor2o4xi import Actor2o4Xi\\n\', 206: \'from actor2p4xi import Actor2p4Xi\\n\', 207: \'from actor2q4xi import Actor2q4Xi\\n\', 208: \'from actor2r4xi import Actor2r4Xi\\n\', 209: \'from actor2s4xi import Actor2s4Xi\\n\', 210: \'from actor2t4xi import Actor2t4Xi\\n\', 211: \'from actor2u4xi import Actor2u4Xi\\n\', 212: \'from actor2v4xi import Actor2v4Xi\\n\', 213: \'from actor2w4xi import Actor2w4Xi\\n\', 214: \'from actor2x4xi import Actor2x4Xi\\n\', 215: \'from actor2y4xi import Actor2y4Xi\\n\', 216: \'from actor2z4xi import Actor2z4Xi\\n\', 217: \'from actor2_4xi import Actor2_4Xi\\n\', 218: \'from time4xi import time4xi # time stamp to events\\n\', 219: \'\\n\', 220: \'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\\n\', 221: \'from xml_trace_reason4xi import xml_trace_reason4xi\\n\', 222: \'from xml_trace_ace4xi import xml_trace_ace4xi \\n\', 223: \'#" \\n\', 224: \'#/\\n\', 225: \'\\n\', 226: \'\\n\', 227: \'# -------------------------------------------------------------------------------------------------\\n\', 228: \'# Global constants \\n\', 229: \'# ------------------------------------------------------------------------------------------------\\n\', 230: \'#globalize4xi globalization = "\\n\', 231: \'\\n\', 232: \'global PickleKB4Xi\\n\', 233: \'\\n\', 234: \'# -------------------------------------------------------------------------------------------------\\n\', 235: \'# Settings\\n\', 236: \'# -------------------------------------------------------------------------------------------------\\n\', 237: \'#set4xi setting = "\\n\', 238: \'PickleKB4Xi = {\\n\', 239: " \'a\': Pickle2a4Xi,\\n", 240: \' # \\n\', 241: " \'b\': Pickle2b4Xi,\\n", 242: \' # \\n\', 243: " \'c\': Pickle2c4Xi,\\n", 244: \' # \\n\', 245: " \'d\': Pickle2d4Xi,\\n", 246: \' # \\n\', 247: " \'e\': Pickle2e4Xi,\\n", 248: " \'f\': Pickle2f4Xi,\\n", 249: " \'g\': Pickle2g4Xi,\\n", 250: " \'h\': Pickle2h4Xi,\\n", 251: " \'i\': Pickle2i4Xi,\\n", 252: " \'j\': Pickle2j4Xi,\\n", 253: " \'k\': Pickle2k4Xi,\\n", 254: " \'l\': Pickle2l4Xi,\\n", 255: " \'m\': Pickle2m4Xi,\\n", 256: " \'n\': Pickle2n4Xi,\\n", 257: " \'o\': Pickle2o4Xi,\\n", 258: " \'p\': Pickle2p4Xi,\\n", 259: " \'q\': Pickle2q4Xi,\\n", 260: " \'r\': Pickle2r4Xi,\\n", 261: " \'s\': Pickle2s4Xi,\\n", 262: " \'t\': Pickle2t4Xi,\\n", 263: " \'u\': Pickle2u4Xi,\\n", 264: " \'v\': Pickle2v4Xi,\\n", 265: " \'w\': Pickle2w4Xi,\\n", 266: " \'x\': Pickle2x4Xi,\\n", 267: " \'y\': Pickle2y4Xi,\\n", 268: " \'z\': Pickle2z4Xi,\\n", 269: " \'_\': Pickle2_4Xi} \\n", 270: \'#"\\n\', 271: \'#"/\\n\', 272: \'\\n\', 273: \'\\n\', 274: \'# ----------------------------------------------------------------------------------------------------------\\n\', 275: \'#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\\n\', 276: \'#" \\n\', 277: \'# ---------------------------------------------------------------------------------------------------------- \\n\', 278: \'def set2trace4xi():\\n\', 279: \' global t2xi \\n\', 280: \' global trace_object_count\\n\', 281: \' global PickleKB4Xi\\n\', 282: \'\\n\', 283: \' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 284: \' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\\n\', 285: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 286: \' \\n\', 287: \' # ---------------------------------------------------------------------------------------------\\n\', 288: \' # A, B .... _ \\n\', 289: \' # ---------------------------------------------------------------------------------------------\\n\', 290: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 291: \' for key2pickledb in keys2pickledb:\\n\', 292: \' # ----------------------------------------------------------------------------------------- \\n\', 293: \' # LETTERS\\n\', 294: \' # ----------------------------------------------------------------------------------------- \\n\', 295: " # print(\'=\' *33)\\n", 296: \' # print("STARTING LETTER : ", key2pickledb)\\n\', 297: " # print(\'=\' *33)\\n", 298: \' \\n\', 299: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 300: \' # print("STARTING DICTIONARY: ", dictionary2pickle)\\n\', 301: " # print(\'~\' *33) \\n", 302: \' # \\n\', 303: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 304: \' \\n\', 305: \' # ----------------------------------------------------------------------------------------- \\n\', 306: \' #\\n\', 307: \' # ----------------------------------------------------------------------------------------- \\n\', 308: \' for key2dictionary in keys2dictionary:\\n\', 309: \' # ------------------------------------------------------------------------------------- \\n\', 310: \' # DICTIONARY\\n\', 311: \' # ------------------------------------------------------------------------------------- \\n\', 312: " # print(\'~\' *33) \\n", 313: \' object2pickle = key2dictionary \\n\', 314: \' # print("STARTING OBJECT: ", object2pickle)\\n\', 315: " # print(\'~\' *33) \\n", 316: \' # pickle4xi(object2pickle)\\n\', 317: " # print(\'~\' *33) \\n", 318: \' # print("PICKLED object: ", object2pickle)\\n\', 319: \' # PICKLED object: _C4Xi, \\n\', 320: \' # --------------------------------------------------------------------------------- \\n\', 321: \' # Mark those with NACK4XI to be traced !\\n\', 322: \' # --------------------------------------------------------------------------------- \\n\', 323: " if dictionary2pickle[key2dictionary] == \'NACK4XI\':\\n", 324: \' set_param2xi = True \\n\', 325: \' key_param = object2pickle \\n\', 326: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 327: \' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \\n\', 328: \' # \\n\', 329: \' else:\\n\', 330: \' pass \\n\', 331: \' # --------------------------------------------------------------------------------- \\n\', 332: \' # END OF DICTIONARY\\n\', 333: \' # --------------------------------------------------------------------------------- \\n\', 334: \' # ----------------------------------------------------------------------------------------- \\n\', 335: \' # END OF LETTERS\\n\', 336: \' # ----------------------------------------------------------------------------------------- \\n\', 337: " # print(\'~\' *33) \\n", 338: \' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 339: " # print(\'~\' *33) \\n", 340: \' # ----------------------------------------------------------------------------------------- \\n\', 341: \' #\\n\', 342: \' # ----------------------------------------------------------------------------------------- \\n\', 343: " # print(\'=\' *33)\\n", 344: \' # print("COMPLETED LETTER : ", key2pickledb)\\n\', 345: " # print(\'=\' *33)\\n", 346: \' # ---------------------------------------------------------------------------------------------\\n\', 347: \' # \\n\', 348: \' # ---------------------------------------------------------------------------------------------\\n\', 349: " print(\'=\' *33)\\n", 350: \' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 351: " print(\'=\' *33)\\n", 352: \'#/function4xi \\n\', 353: \'\\n\', 354: \' \\n\', 355: \'# -------------------------------------------------------------------------------------------------\\n\', 356: \'#function4xi function = "deny2trace4xi" usage = "\\n\', 357: \'# deny trace using pickle4xi functions !\\n\', 358: \'#" \\n\', 359: \'# ------------------------------------------------------------------------------------------------- \\n\', 360: \'def deny2trace4xi():\\n\', 361: \' global t2xi \\n\', 362: \' global trace_object_count\\n\', 363: \' global PickleKB4Xi\\n\', 364: \'\\n\', 365: \' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 366: \' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\\n\', 367: \' # print4xi.Print4Xi object at 0x0000000003715080\\n\', 368: \' \\n\', 369: \' # ---------------------------------------------------------------------------------------------\\n\', 370: \' # A, B .... _ \\n\', 371: \' # ---------------------------------------------------------------------------------------------\\n\', 372: \' keys2pickledb = sorted(PickleKB4Xi.keys())\\n\', 373: \' for key2pickledb in keys2pickledb:\\n\', 374: \' # ----------------------------------------------------------------------------------------- \\n\', 375: \' # LETTERS\\n\', 376: \' # ----------------------------------------------------------------------------------------- \\n\', 377: \' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\\n\', 378: \' dictionary2pickle = PickleKB4Xi[key2pickledb] \\n\', 379: \' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\\n\', 380: \' keys2dictionary = sorted(dictionary2pickle.keys())\\n\', 381: \' # ----------------------------------------------------------------------------------------- \\n\', 382: \' #\\n\', 383: \' # ----------------------------------------------------------------------------------------- \\n\', 384: \' for key2dictionary in keys2dictionary:\\n\', 385: \' \\n\', 386: \' # ------------------------------------------------------------------------------------- \\n\', 387: \' # DICTIONARY\\n\', 388: \' \\n\', 389: \' object2pickle = key2dictionary \\n\', 390: \' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\\n\', 391: \' # pickle4xi(object2pickle) \\n\', 392: \' # print("STEP: PICKLED object: ", object2pickle)\\n\', 393: \' # PICKLED object: _C4Xi, \\n\', 394: \' \\n\', 395: \' # --------------------------------------------------------------------------------- \\n\', 396: \' # ACK4XI = tested .i.e. NOT to be traced! \\n\', 397: \' # --------------------------------------------------------------------------------- \\n\', 398: " set_param2xi = \'ACK4XI\' \\n", 399: \' key_param = object2pickle \\n\', 400: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 401: \' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\\n\', 402: \' \\n\', 403: " dictionary2pickle[key2dictionary] = \'ACK4XI\' \\n", 404: \' \\n\', 405: \' \\n\', 406: \' # --------------------------------------------------------------------------------- \\n\', 407: \' # END OF DICTIONARY\\n\', 408: \' # --------------------------------------------------------------------------------- \\n\', 409: " # print(\'~\' *33) \\n", 410: \' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\\n\', 411: " # print(\'~\' *33) \\n", 412: \' # ----------------------------------------------------------------------------------------- \\n\', 413: \' # END OF LETTERS\\n\', 414: \' # ----------------------------------------------------------------------------------------- \\n\', 415: \' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\\n\', 416: \' # \\n\', 417: \' \\n\', 418: \' # ----------------------------------------------------------------------------------------- \\n\', 419: \' #\\n\', 420: \' # ----------------------------------------------------------------------------------------- \\n\', 421: \' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\\n\', 422: \' # _, a ... z \\n\', 423: \' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \\n\', 424: \'#/function4xi \\n\', 425: \'\\n\', 426: \'# -------------------------------------------------------------------------------------------------\\n\', 427: \'#function4xi function = "tailor2trace4xi" usage = "\\n\', 428: \'# tailors trace \\n\', 429: \'#" \\n\', 430: \'# ------------------------------------------------------------------------------------------------- \\n\', 431: \'def tailor2trace4xi():\\n\', 432: \' global trace_object_count\\n\', 433: \' global PickleKB4Xi \\n\', 434: \' global t2xi\\n\', 435: \' \\n\', 436: \' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\\n\', 437: \' # print4xi.Print4Xi object at 0x0000000003715080 \\n\', 438: \' \\n\', 439: \' # ---------------------------------------------------------------------------------------------\\n\', 440: \' # Settings to tailor trace\\n\', 441: \' # ---------------------------------------------------------------------------------------------\\n\', 442: \' #set4xi setting = "\\n\', 443: \' KB4Tailoring = {\\n\', 444: " \'APU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4apu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4apu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4apu\': \'NACK4XI\',\\n", 448: " \'release2sampler4apu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4apu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4apu\': \'NACK4XI\',\\n", 451: " \'set2sampler4apu\': \'NACK4XI\' \\n", 452: \' } \\n\', 453: \' \\n\', 454: " default3trace = \'NACK4TRACE\' # we do NOT want trace if object is not found! \\n", 455: \' #"/\\n\', 456: \' \\n\', 457: \' # ---------------------------------------------------------------------------------------------\\n\', 458: \' # PROCESS KB4Tailoring\\n\', 459: \' # ---------------------------------------------------------------------------------------------\\n\', 460: \' keys2tailor = sorted(KB4Tailoring.keys())\\n\', 461: \' for key2tailor in keys2tailor:\\n\', 462: \' # --------------------------------------------------------------------------------- \\n\', 463: \' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \\n\', 464: \' # --------------------------------------------------------------------------------- \\n\', 465: " set_param2xi = \'NACK4XI\' \\n", 466: \' key_param = key2tailor \\n\', 467: \' t2xi.set_print_permission(key_param, set_param2xi)\\n\', 468: \' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\\n\', 469: \' # \\n\', 470: \' \\n\', 471: \' # ----------------------------------------------------------------------------------------- \\n\', 472: \' # EOF KEYS\\n\', 473: \' # ----------------------------------------------------------------------------------------- \\n\', 474: \' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\\n\', 475: \' #\\n\', 476: \'\\n\', 477: \' \\n\', 478: \'#/function4xi \\n\', 479: \'\\n\', 480: \' \\n\', 481: \'# -------------------------------------------------------------------------------------------------\\n\', 482: \'#function4xi function = "print-trace4xi" usage = "\\n\', 483: \'# print XML trace for sampler4apu test\\n\', 484: \'#" \\n\', 485: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 486: \'# ------------------------------------------------------------------------------------------------- \\n\', 487: \'def print2trace4xi(t2xi):\\n\', 488: \' \\n\', 489: \'\\n\', 490: \' # -------------------------------------------------------------------------------------------------\\n\', 491: \' # SENSE \\n\', 492: \' # ------------------------------------------------------------------------------------------------- \\n\', 493: \' \\n\', 494: \' context2sense = {\\n\', 495: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-apu2sampler4xi5test.xml\',\\n", 496: \' \\\'name_space4xi\\\': \\\' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 497: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 498: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 499: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 500: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 501: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 502: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 503: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\\\n\\\',\\n\', 504: " \'debug4xi\': True}\\n", 505: \' \\n\', 506: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 507: \'\\n\', 508: \' # -------------------------------------------------------------------------------------------------\\n\', 509: \' # REASON \\n\', 510: \' # ------------------------------------------------------------------------------------------------- \\n\', 511: \' \\n\', 512: \' context2reason = {\\n\', 513: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-apu2sampler4xi5test.xml\',\\n", 514: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 515: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 516: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 517: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 519: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 520: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 521: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 522: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 523: " \'debug4xi\': True}\\n", 524: \' \\n\', 525: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 526: \'\\n\', 527: \' # -------------------------------------------------------------------------------------------------\\n\', 528: \' # ACE \\n\', 529: \' # ------------------------------------------------------------------------------------------------- \\n\', 530: \' \\n\', 531: \' context2ace = {\\n\', 532: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-apu2sampler4xi5test.xml\',\\n", 533: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\\\n\\\',\\n\', 534: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\\\n\\\',\\n\', 535: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 536: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 537: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 538: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\\\n\\\',\\n\', 539: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 540: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 541: " \'debug4xi\': True} \\n", 542: \' \\n\', 543: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 544: \'\\n\', 545: \'\\n\', 546: \' # -------------------------------------------------------------------------------------------------\\n\', 547: \' # end of print2trace4xi \\n\', 548: \' # ------------------------------------------------------------------------------------------------- \\n\', 549: \'#/function4xi\\n\', 550: \' \\n\', 551: \'# -------------------------------------------------------------------------------------------------\\n\', 552: \'#function4xi function = "apu2sampler4xi5test" usage = "\\n\', 553: \'# tests sampler4apu\\n\', 554: \'#" \\n\', 555: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 556: \'# ------------------------------------------------------------------------------------------------- \\n\', 557: \'def apu2sampler4xi5test():\\n\', 558: \' global t2xi\\n\', 559: \' global trace_object_count \\n\', 560: \' \\n\', 561: \' # --------------------------------------------------------------------------------------------- \\n\', 562: \' # INITIALIZE TRACE\\n\', 563: \' # --------------------------------------------------------------------------------------------- \\n\', 564: \' t2xi = Print4Xi()\\n\', 565: \' set2trace4xi() # trace all classes and functions in the system\\n\', 566: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 567: \' tailor2trace4xi() # tailor trace for this test \\n\', 568: \' try:\\n\', 569: \' # ---------------------------------------------------------------------------------------------\\n\', 570: \' # START TESTING \\n\', 571: \' # --------------------------------------------------------------------------------------------- \\n\', 572: " print(\'=\' *33) \\n", 573: " print(\'(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 574: " print(\'=\' *33) \\n", 575: \' # \\n\', 576: \' \\n\', 577: \' # ---------------------------------------------------------------------------------------------\\n\', 578: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 579: \' # --------------------------------------------------------------------------------------------- \\n\', 580: " print(\'(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU \', time4xi()) \\n", 581: \' try:\\n\', 582: \' response4create2sampler = create2sampler4apu() \\n\', 583: \' keys2response = response4create2sampler.keys()\\n\', 584: \' for key2response in sorted(keys2response):\\n\', 585: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 586: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 587: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 588: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 589: \' # CODE2ERROR : 0\\n\', 590: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 591: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 592: \' # COUNT2REFERENCE : 1\\n\', 593: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 594: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 595: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 596: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 597: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\\n\', 598: \' # NACK2RETURN : \\n\', 599: \' # NORMALIZATION : CL_TRUE\\n\', 600: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 601: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 602: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 603: \' except:\\n\', 604: " print(\'(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** \', time4xi())\\n", 605: \' \\n\', 606: \' \\n\', 607: \' \\n\', 608: \' \\n\', 609: \' # ---------------------------------------------------------------------------------------------\\n\', 610: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 611: \' # --------------------------------------------------------------------------------------------- \\n\', 612: " print(\'=\' *33) \\n", 613: " print(\'(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 614: " print(\'=\' *33) \\n", 615: \' task4getinfo2sampler = {}\\n\', 616: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 617: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 618: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 619: \' try:\\n\', 620: \' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \\n\', 621: " print(\'(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU \', time4xi()) \\n", 622: \' keys2response = response4samplerinfo2apu.keys()\\n\', 623: \' for key2response in sorted(keys2response):\\n\', 624: " print(key2response, \' : \', response4samplerinfo2apu[key2response])\\n", 625: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 626: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 627: \' # NORMALIZATION : CL_TRUE \\n\', 628: \' \\n\', 629: \' except:\\n\', 630: " print(\'(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU\', time4xi())\\n", 631: \' \\n\', 632: \'\\n\', 633: \' \\n\', 634: " print(\'=\' *33) \\n", 635: " print(\'(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU \', time4xi()) \\n", 636: " print(\'=\' *33) \\n", 637: \' try:\\n\', 638: \' response4getinfo2sampler = get2samplerinfo4apu() \\n\', 639: \' keys2response = response4getinfo2sampler.keys()\\n\', 640: \' for key2response in sorted(keys2response):\\n\', 641: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 642: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 643: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 644: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 645: \' # CODE2ERROR : 0\\n\', 646: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 647: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 648: \' # COUNT2REFERENCE : 1\\n\', 649: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 650: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 651: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 652: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 653: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 654: \' # NACK2RETURN : \\n\', 655: \' # NORMALIZATION : CL_TRUE\\n\', 656: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 657: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 658: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 659: \' except:\\n\', 660: " print(\'(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***\', time4xi())\\n", 661: \' \\n\', 662: \' \\n\', 663: \' # ---------------------------------------------------------------------------------------------\\n\', 664: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 665: \' # --------------------------------------------------------------------------------------------- \\n\', 666: " print(\'=\' *33) \\n", 667: " print(\'(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 668: " print(\'=\' *33)\\n", 669: \' \\n\', 670: \' # ---------------------------------------------------------------------------------------------\\n\', 671: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 672: \' # --------------------------------------------------------------------------------------------- \\n\', 673: " print(\'=\' *33) \\n", 674: " print(\'(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 675: " print(\'=\' *33) \\n", 676: \' platform2xi = {}\\n\', 677: \' try:\\n\', 678: \' platform2xi = get2platformids4xi()\\n\', 679: " print(\'(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 680: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 681: \' \\n\', 682: \' except:\\n\', 683: " print(\'(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 684: \' \\n\', 685: \' # ---------------------------------------------------------------------------------------------\\n\', 686: \' # (2) INITIALIZE DEVICE \\n\', 687: \' # --------------------------------------------------------------------------------------------- \\n\', 688: " print(\'=\' *33) \\n", 689: " print(\'(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU \', time4xi()) \\n", 690: " print(\'=\' *33) \\n", 691: \' try:\\n\', 692: \' device2apu = init2apu4xi() \\n\', 693: " print(\'(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: \', device2apu) \\n", 694: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 695: \' \\n\', 696: \' except:\\n\', 697: " print(\'(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU\', time4xi()) \\n", 698: \' \\n\', 699: \' \\n\', 700: \' # ---------------------------------------------------------------------------------------------\\n\', 701: \' # (3) CREATE CONTEXT \\n\', 702: \' # --------------------------------------------------------------------------------------------- \\n\', 703: " print(\'=\' *33) \\n", 704: " print(\'(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU \', time4xi()) \\n", 705: " print(\'=\' *33) \\n", 706: \' try:\\n\', 707: \' context2apu = create2context4apu() \\n\', 708: " print(\'(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: \', context2apu) \\n", 709: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 710: \' \\n\', 711: \' except:\\n\', 712: " print(\'(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU\', time4xi()) \\n", 713: \' \\n\', 714: \' \\n\', 715: \' \\n\', 716: \' # ---------------------------------------------------------------------------------------------\\n\', 717: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 718: \' # --------------------------------------------------------------------------------------------- \\n\', 719: \' task4set2sampler = {}\\n\', 720: \' \\n\', 721: \' \\n\', 722: \' # ---------------------------------------------------------------------------------------------\\n\', 723: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 724: \' # --------------------------------------------------------------------------------------------- \\n\', 725: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 726: \' \\n\', 727: \' \\n\', 728: \' # ---------------------------------------------------------------------------------------------\\n\', 729: \' # (6) DEFINE DEVICE - EXTRA \\n\', 730: \' # --------------------------------------------------------------------------------------------- \\n\', 731: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 732: \' \\n\', 733: \' # ---------------------------------------------------------------------------------------------\\n\', 734: \' # (7) DEFINE PROPERTIES - NONE \\n\', 735: \' # --------------------------------------------------------------------------------------------- \\n\', 736: " task4set2sampler [\'PROPERTIES\'] = None \\n", 737: \' \\n\', 738: \' \\n\', 739: \' # ---------------------------------------------------------------------------------------------\\n\', 740: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 741: \' # --------------------------------------------------------------------------------------------- \\n\', 742: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 743: \' \\n\', 744: \' \\n\', 745: \' # ---------------------------------------------------------------------------------------------\\n\', 746: \' # (9) SET QUEUE - EXTRA \\n\', 747: \' # --------------------------------------------------------------------------------------------- \\n\', 748: " task4set2sampler [\'QUEUE\'] = None\\n", 749: " print(\'(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 750: \' try: \\n\', 751: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 752: " print(\'(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: \', task4set2sampler [\'QUEUE\']) \\n", 753: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 754: \' \\n\', 755: \' except:\\n\', 756: " print(\'(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 757: \' \\n\', 758: \' \\n\', 759: \' # ---------------------------------------------------------------------------------------------\\n\', 760: \' # (10) SET PIPE - EXTRA \\n\', 761: \' # --------------------------------------------------------------------------------------------- \\n\', 762: " task4set2sampler [\'PIPE\'] = None\\n", 763: " print(\'(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 764: \' try: \\n\', 765: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 766: " print(\'(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: \', task4set2sampler [\'PIPE\']) \\n", 767: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 768: \' \\n\', 769: \' except:\\n\', 770: " print(\'(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU \', time4xi()) \\n", 771: \' \\n\', 772: \' \\n\', 773: \' # ---------------------------------------------------------------------------------------------\\n\', 774: \' # (11) SET REST \\n\', 775: \' # --------------------------------------------------------------------------------------------- \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 777: " print(\'(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 778: \' try: \\n\', 779: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 780: " print(\'(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 783: " print(\'(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 784: \' # \\n\', 785: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 786: " print(\'(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 787: \' #\\n\', 788: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 789: " print(\'(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 790: \' # \\n\', 791: \' \\n\', 792: \' except:\\n\', 793: " print(\'(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi()) \\n", 794: \' \\n\', 795: \'\\n\', 796: \' \\n\', 797: \' # ---------------------------------------------------------------------------------------------\\n\', 798: \' # (11) SET SAMPLER - FINALLY! \\n\', 799: \' # --------------------------------------------------------------------------------------------- \\n\', 800: \' response4set2sampler = {} \\n\', 801: " print(\'(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU \', time4xi()) \\n", 802: \' try: \\n\', 803: \' response4set2sampler = set2sampler4apu(task4set2sampler) \\n\', 804: \' \\n\', 805: \' keys2response = response4set2sampler.keys()\\n\', 806: \' for key2response in sorted(keys2response):\\n\', 807: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 808: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 809: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 810: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 811: \' # CODE2ERROR : 0\\n\', 812: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 813: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 814: \' # COUNT2REFERENCE : 1\\n\', 815: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 816: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 817: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 818: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 819: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\\n\', 820: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 821: \' # NORMALIZATION : CL_TRUE\\n\', 822: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 823: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 824: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 825: \' \\n\', 826: \' \\n\', 827: \' except:\\n\', 828: " print(\'(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** \', time4xi()) \\n", 829: \' \\n\', 830: \' \\n\', 831: \' # ---------------------------------------------------------------------------------------------\\n\', 832: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 833: \' # --------------------------------------------------------------------------------------------- \\n\', 834: \' \\n\', 835: \' task4release2sampler = {} \\n\', 836: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 837: \' response4release2sampler = {}\\n\', 838: \' \\n\', 839: " print(\'(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 840: \' # \\n\', 841: \' try: \\n\', 842: \' response4release2sampler = release2sampler4apu(task4release2sampler) \\n\', 843: \' \\n\', 844: \' keys2response = response4release2sampler.keys()\\n\', 845: \' for key2response in sorted(keys2response):\\n\', 846: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 847: \' # COUNT2REFERENCE : 0\\n\', 848: \' \\n\', 849: \' except:\\n\', 850: " print(\'(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 851: \' \\n\', 852: \' task4getinfo2sampler = {}\\n\', 853: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 854: \' \\n\', 855: " print(\'(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 856: \' # \\n\', 857: \' try: \\n\', 858: \' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \\n\', 859: \' keys2response = response4getinfo2sampler.keys()\\n\', 860: \' \\n\', 861: \' for key2response in sorted(keys2response):\\n\', 862: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 863: \' # COUNT2REFERENCE : 0\\n\', 864: \' \\n\', 865: \' except:\\n\', 866: " print(\'(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 867: \' \\n\', 868: \' \\n\', 869: \' # ---------------------------------------------------------------------------------------------\\n\', 870: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 871: \' # --------------------------------------------------------------------------------------------- \\n\', 872: \' task4retain2sampler = {}\\n\', 873: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 874: \' response4retain2sampler = {}\\n\', 875: " print(\'(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 876: \' try: \\n\', 877: \' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \\n\', 878: \' \\n\', 879: \' keys2response = response4retain2sampler.keys()\\n\', 880: \' for key2response in sorted(keys2response):\\n\', 881: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 882: \' # COUNT2REFERENCE : 1\\n\', 883: \' \\n\', 884: \' except:\\n\', 885: " print(\'(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 886: \' \\n\', 887: \' \\n\', 888: \' \\n\', 889: \' # ---------------------------------------------------------------------------------------------\\n\', 890: \' # (14) SAMPLER CALLBACK \\n\', 891: \' # --------------------------------------------------------------------------------------------- \\n\', 892: \' \\n\', 893: " print(\'(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 894: \' try: \\n\', 895: \' response4setcallback2sampler = set2samplercallback4apu() \\n\', 896: " print(\'(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: \', response4setcallback2sampler) \\n", 897: \' # function trace2sampler4apu at 0x00000000039676C8\\n\', 898: \' except:\\n\', 899: " print(\'(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU \', time4xi()) \\n", 900: \' \\n\', 901: \' \\n\', 902: \' # ---------------------------------------------------------------------------------------------\\n\', 903: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 904: \' # --------------------------------------------------------------------------------------------- \\n\', 905: " print(\'=\' *33) \\n", 906: " print(\'(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 907: " print(\'=\' *33) \\n", 908: \' trace2apu = None\\n\', 909: \' try:\\n\', 910: \' trace2apu = trace2sampler4apu() \\n\', 911: " print(\'(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 912: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'} \\n", 913: \' \\n\', 914: \' except:\\n\', 915: " print(\'(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 916: \' \\n\', 917: \' \\n\', 918: \' \\n\', 919: \' # ---------------------------------------------------------------------------------------------\\n\', 920: \' # PHASE II: CLASS TESTS \\n\', 921: \' # ---------------------------------------------------------------------------------------------\\n\', 922: " print(\'=\' *33) \\n", 923: " print(\'(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT \', time4xi()) \\n", 924: " print(\'=\' *33) \\n", 925: \' # \\n\', 926: \' try:\\n\', 927: \' # ---------------------------------------------------------------------------------------------\\n\', 928: \' # CREATE WITH OBJECT \\n\', 929: \' # --------------------------------------------------------------------------------------------- \\n\', 930: \' samplerobject2apu = APU2Sampler4Xi()\\n\', 931: " print(\'(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: \', samplerobject2apu) \\n", 932: \' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\\n\', 933: \' \\n\', 934: \' except:\\n\', 935: " print(\'(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT\')\\n", 936: \' \\n\', 937: \' # ---------------------------------------------------------------------------------------------\\n\', 938: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 939: \' # --------------------------------------------------------------------------------------------- \\n\', 940: " print(\'(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 941: \' try: \\n\', 942: \' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \\n\', 943: \' \\n\', 944: \' keys2response = response4get2samplerinfo.keys()\\n\', 945: \' for key2response in sorted(keys2response):\\n\', 946: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 947: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 948: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 949: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 950: \' # CODE2ERROR : 0\\n\', 951: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 952: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 953: \' # COUNT2REFERENCE : 1\\n\', 954: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 955: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 956: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 957: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 958: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 959: \' # NACK2RETURN : \\n\', 960: \' # NORMALIZATION : CL_TRUE\\n\', 961: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 962: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 963: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 964: \' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 965: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 966: \' # COUNT2REFERENCE : 1\\n\', 967: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 968: \' # NORMALIZATION : CL_TRUE\\n\', 969: \' \\n\', 970: \' except:\\n\', 971: " print(\'(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 972: \' \\n\', 973: \' task4getinfo2sampler = {}\\n\', 974: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 975: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 976: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 977: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 978: \' response4getinfo2sampler = {}\\n\', 979: " print(\'(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 980: \' # \\n\', 981: \' try: \\n\', 982: \' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \\n\', 983: \' keys2response = response4getinfo2sampler.keys()\\n\', 984: \' \\n\', 985: \' for key2response in sorted(keys2response):\\n\', 986: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 987: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 988: \' # COUNT2REFERENCE : 1\\n\', 989: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 990: \' # NORMALIZATION : CL_TRUE \\n\', 991: \' \\n\', 992: \' except:\\n\', 993: " print(\'(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 994: \' \\n\', 995: \' \\n\', 996: \' # ---------------------------------------------------------------------------------------------\\n\', 997: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 998: \' # --------------------------------------------------------------------------------------------- \\n\', 999: " print(\'=\' *33) \\n", 1000: " print(\'(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 1001: " print(\'=\' *33) \\n", 1002: \' # \\n\', 1003: \' \\n\', 1004: \' # ---------------------------------------------------------------------------------------------\\n\', 1005: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1006: \' # --------------------------------------------------------------------------------------------- \\n\', 1007: \' task4set2sampler = {}\\n\', 1008: \' \\n\', 1009: \' \\n\', 1010: \' # ---------------------------------------------------------------------------------------------\\n\', 1011: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1012: \' # --------------------------------------------------------------------------------------------- \\n\', 1013: \' \\n\', 1014: " task4set2sampler [\'CONTEXT\'] = context2apu \\n", 1015: \' \\n\', 1016: \' \\n\', 1017: \' # ---------------------------------------------------------------------------------------------\\n\', 1018: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1019: \' # --------------------------------------------------------------------------------------------- \\n\', 1020: \' \\n\', 1021: " task4set2sampler [\'DEVICE\'] = device2apu \\n", 1022: \' \\n\', 1023: \' \\n\', 1024: \' # ---------------------------------------------------------------------------------------------\\n\', 1025: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1026: \' # --------------------------------------------------------------------------------------------- \\n\', 1027: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1028: \' \\n\', 1029: \' \\n\', 1030: \' # ---------------------------------------------------------------------------------------------\\n\', 1031: \' # (8) QUEUE - EXTRA \\n\', 1032: \' # --------------------------------------------------------------------------------------------- \\n\', 1033: " print(\'(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1034: " task4set2sampler [\'QUEUE\'] = None\\n", 1035: \' try:\\n\', 1036: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1037: " print(\'(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1038: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1039: \' \\n\', 1040: \' except:\\n\', 1041: " print(\'(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1042: \' \\n\', 1043: \' # ---------------------------------------------------------------------------------------------\\n\', 1044: \' # (9) PIPE \\n\', 1045: \' # --------------------------------------------------------------------------------------------- \\n\', 1046: " print(\'(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1047: " task4set2sampler [\'PIPE\'] = None\\n", 1048: \' try:\\n\', 1049: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1050: " print(\'(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1051: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1052: \' \\n\', 1053: \' except:\\n\', 1054: " print(\'(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1055: \' \\n\', 1056: \' # ---------------------------------------------------------------------------------------------\\n\', 1057: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1058: \' # --------------------------------------------------------------------------------------------- \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1060: " print(\'(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU \', time4xi()) \\n", 1061: \' try: \\n\', 1062: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4apu() \\n", 1063: " print(\'(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1064: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1065: \' \\n\', 1066: \' \\n\', 1067: \' except:\\n\', 1068: " print(\'(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU \', time4xi())\\n", 1069: \' \\n\', 1070: \' # ---------------------------------------------------------------------------------------------\\n\', 1071: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1072: \' # --------------------------------------------------------------------------------------------- \\n\', 1073: \' \\n\', 1074: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1075: \' try: \\n\', 1076: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1077: " print(\'(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1078: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1079: \' \\n\', 1080: \' \\n\', 1081: \' except:\\n\', 1082: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1083: \' \\n\', 1084: \' \\n\', 1085: \' # ---------------------------------------------------------------------------------------------\\n\', 1086: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1087: \' # --------------------------------------------------------------------------------------------- \\n\', 1088: \' \\n\', 1089: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU \', time4xi()) \\n", 1090: \' try: \\n\', 1091: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1092: " print(\'(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1093: \' # CL_FILTER_LINEAR\\n\', 1094: \' \\n\', 1095: \' \\n\', 1096: \' except:\\n\', 1097: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU \', time4xi()) \\n", 1098: \' \\n\', 1099: \' \\n\', 1100: \' \\n\', 1101: \' # ---------------------------------------------------------------------------------------------\\n\', 1102: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1103: \' # --------------------------------------------------------------------------------------------- \\n\', 1104: " print(\'(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1105: \' try: \\n\', 1106: \' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \\n\', 1107: \' keys2response = response4set2sampler.keys()\\n\', 1108: \' for key2response in sorted(keys2response):\\n\', 1109: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1110: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1111: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1112: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1113: \' # CODE2ERROR : 0\\n\', 1114: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1115: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1116: \' # COUNT2REFERENCE : 1\\n\', 1117: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1118: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1119: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1120: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1121: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1122: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1123: \' # NORMALIZATION : CL_TRUE\\n\', 1124: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1125: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1126: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1127: \' \\n\', 1128: \' except:\\n\', 1129: " print(\'(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: \', time4xi()) \\n", 1130: \' \\n\', 1131: \' \\n\', 1132: \' \\n\', 1133: \' # ---------------------------------------------------------------------------------------------\\n\', 1134: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1135: \' # --------------------------------------------------------------------------------------------- \\n\', 1136: " print(\'=\' *33) \\n", 1137: " print(\'(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1138: " print(\'=\' *33) \\n", 1139: \' # \\n\', 1140: \' task4release2sampler = {}\\n\', 1141: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1142: \' try:\\n\', 1143: \' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\\n\', 1144: \' keys2response = response4release2sampler.keys()\\n\', 1145: \' \\n\', 1146: \' for key2response in sorted(keys2response):\\n\', 1147: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1148: \' # COUNT2REFERENCE : 0\\n\', 1149: \' \\n\', 1150: \' except:\\n\', 1151: " print(\'(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1152: \' \\n\', 1153: \' \\n\', 1154: \' # ---------------------------------------------------------------------------------------------\\n\', 1155: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1156: \' # --------------------------------------------------------------------------------------------- \\n\', 1157: " print(\'=\' *33) \\n", 1158: " print(\'(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1159: " print(\'=\' *33) \\n", 1160: \' task4retain2sampler = {}\\n\', 1161: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1162: \' try:\\n\', 1163: \' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\\n\', 1164: \' keys2response = response4retain2sampler.keys()\\n\', 1165: \' for key2response in sorted(keys2response):\\n\', 1166: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1167: \' # COUNT2REFERENCE : 1\\n\', 1168: \' \\n\', 1169: \' except:\\n\', 1170: " print(\'(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1171: \' \\n\', 1172: \' # ---------------------------------------------------------------------------------------------\\n\', 1173: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1174: \' # --------------------------------------------------------------------------------------------- \\n\', 1175: " print(\'(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU \', time4xi()) \\n", 1176: \' # \\n\', 1177: \' try:\\n\', 1178: \' xi2apu = APU2Sampler4Xi() \\n\', 1179: \' response4create2sampler = xi2apu.create2sampler() \\n\', 1180: \' keys2response = response4create2sampler.keys()\\n\', 1181: \' for key2response in sorted(keys2response):\\n\', 1182: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1183: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1184: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1185: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1186: \' # CODE2ERROR : 0\\n\', 1187: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1188: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1189: \' # COUNT2REFERENCE : 1\\n\', 1190: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4apu\', \'METHOD\': \'create2sampler4apu\'}\\n", 1191: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1192: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1193: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1194: \' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\\n\', 1195: \' # NACK2RETURN : \\n\', 1196: \' # NORMALIZATION : CL_TRUE\\n\', 1197: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1198: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1199: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1200: \' \\n\', 1201: \' except:\\n\', 1202: " print(\'(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU \', time4xi()) \\n", 1203: \' \\n\', 1204: \' # ---------------------------------------------------------------------------------------------\\n\', 1205: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1206: \' # --------------------------------------------------------------------------------------------- \\n\', 1207: " print(\'(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: \', xi2apu) \\n", 1208: \' # \\n\', 1209: \' try:\\n\', 1210: \' \\n\', 1211: \' callback2apu = xi2apu.set2samplercallback() \\n\', 1212: " print(\'(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2apu)\\n", 1213: \' # function trace2sampler4apu at 0x00000000039676C8 \\n\', 1214: \' \\n\', 1215: \' except:\\n\', 1216: " print(\'(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1217: \' \\n\', 1218: \' \\n\', 1219: \' # ---------------------------------------------------------------------------------------------\\n\', 1220: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1221: \' # --------------------------------------------------------------------------------------------- \\n\', 1222: " print(\'=\' *33) \\n", 1223: " print(\'(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: \', time4xi()) \\n", 1224: " print(\'=\' *33) \\n", 1225: \' # \\n\', 1226: \' \\n\', 1227: \' trace2apu = None\\n\', 1228: \' try:\\n\', 1229: \' trace2apu = xi2apu.trace2sampler() \\n\', 1230: \' \\n\', 1231: " print(\'=\' *33) \\n", 1232: " print(\'(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: \', trace2apu) \\n", 1233: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4apu\', \'METHOD\': \'trace2sampler4apu\'}\\n", 1234: \' \\n\', 1235: \' \\n\', 1236: " print(\'=\' *33)\\n", 1237: \' except:\\n\', 1238: " print(\'(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: \', trace2apu) \\n", 1239: \' \\n\', 1240: \' \\n\', 1241: \' \\n\', 1242: \' # ---------------------------------------------------------------------------------------------\\n\', 1243: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1244: \' # --------------------------------------------------------------------------------------------- \\n\', 1245: \' task4release2sampler = {} \\n\', 1246: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1247: \' response4release2sampler = {}\\n\', 1248: \' \\n\', 1249: " print(\'(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1250: \' # \\n\', 1251: \' try: \\n\', 1252: \' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \\n\', 1253: \' \\n\', 1254: \' keys2response = response4release2sampler.keys()\\n\', 1255: \' for key2response in sorted(keys2response):\\n\', 1256: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1257: \' # COUNT2REFERENCE : 0\\n\', 1258: \' except:\\n\', 1259: " print(\'(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE \', time4xi()) \\n", 1260: \' \\n\', 1261: \' task4getinfo2sampler = {}\\n\', 1262: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1263: \' response4getinfo2sampler = {}\\n\', 1264: " print(\'(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1265: \' # \\n\', 1266: \' try: \\n\', 1267: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1268: \' keys2response = response4getinfo2sampler.keys()\\n\', 1269: \' \\n\', 1270: \' for key2response in sorted(keys2response):\\n\', 1271: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1272: \' # COUNT2REFERENCE : 0\\n\', 1273: \' except:\\n\', 1274: " print(\'(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1275: \' \\n\', 1276: \' \\n\', 1277: \' # ---------------------------------------------------------------------------------------------\\n\', 1278: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1279: \' # --------------------------------------------------------------------------------------------- \\n\', 1280: \' task4retain2sampler = {}\\n\', 1281: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1282: \' response4retain2sampler = {}\\n\', 1283: " print(\'(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE \', time4xi()) \\n", 1284: \' try: \\n\', 1285: \' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \\n\', 1286: \' \\n\', 1287: \' keys2response = response4retain2sampler.keys()\\n\', 1288: \' for key2response in sorted(keys2response):\\n\', 1289: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1290: \' # COUNT2REFERENCE : 1\\n\', 1291: \' except:\\n\', 1292: " print(\'(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE \', time4xi())\\n", 1293: \' \\n\', 1294: \' task4getinfo2sampler = {}\\n\', 1295: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1296: \' response4getinfo2sampler = {}\\n\', 1297: " print(\'(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1298: \' # \\n\', 1299: \' try: \\n\', 1300: \' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \\n\', 1301: \' keys2response = response4getinfo2sampler.keys()\\n\', 1302: \' \\n\', 1303: \' for key2response in sorted(keys2response):\\n\', 1304: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1305: \' # COUNT2REFERENCE : 1\\n\', 1306: \' \\n\', 1307: \' except:\\n\', 1308: " print(\'(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE \', time4xi()) \\n", 1309: \' \\n\', 1310: \' # ---------------------------------------------------------------------------------------------\\n\', 1311: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1312: \' # --------------------------------------------------------------------------------------------- \\n\', 1313: " print(\'=\' *33) \\n", 1314: " print(\'(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1315: " print(\'=\' *33) \\n", 1316: \' \\n\', 1317: \' try:\\n\', 1318: \' print(xi2apu.sense())\\n\', 1319: \' \\n\', 1320: " print(\'=\' *33) \\n", 1321: " print(\'(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1322: " # {\'classvariable2apu-of-APU2Sampler4Xi\': 4, \'object\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1323: \' \\n\', 1324: " print(\'=\' *33)\\n", 1325: \' except:\\n\', 1326: " print(\'(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1327: \' \\n\', 1328: \' # ---------------------------------------------------------------------------------------------\\n\', 1329: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1330: \' # --------------------------------------------------------------------------------------------- \\n\', 1331: " print(\'=\' *33) \\n", 1332: " print(\'(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1333: " print(\'=\' *33) \\n", 1334: \' \\n\', 1335: \' try:\\n\', 1336: \' print(xi2apu.reason())\\n\', 1337: \' \\n\', 1338: " print(\'=\' *33) \\n", 1339: " print(\'(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1340: " # {\'object-reason-object4xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-APU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1341: \' \\n\', 1342: " print(\'=\' *33) \\n", 1343: \' except:\\n\', 1344: " print(\'(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1345: \' \\n\', 1346: \' # ---------------------------------------------------------------------------------------------\\n\', 1347: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1348: \' # --------------------------------------------------------------------------------------------- \\n\', 1349: " print(\'=\' *33) \\n", 1350: " print(\'(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1351: " print(\'=\' *33) \\n", 1352: \' \\n\', 1353: \' try:\\n\', 1354: \' print(xi2apu.ace())\\n\', 1355: \' \\n\', 1356: " print(\'=\' *33) \\n", 1357: " print(\'(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1358: " # {\'cores-of-APU2Sampler4Xi\': 4, \'object8xi\': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1359: \' \\n\', 1360: " print(\'=\' *33) \\n", 1361: \' except:\\n\', 1362: " print(\'(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1363: \' \\n\', 1364: \' # ---------------------------------------------------------------------------------------------\\n\', 1365: \' # DONE - ALL TESTS \\n\', 1366: \' # --------------------------------------------------------------------------------------------- \\n\', 1367: " print(\'=\' *33) \\n", 1368: " print(\'(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1369: \' # \\n\', 1370: " print(\'=\' *33) \\n", 1371: \' except:\\n\', 1372: " print(\'(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1373: \' finally: \\n\', 1374: \' # --------------------------------------------------------------------------------------------- \\n\', 1375: \' # Print Trace\\n\', 1376: \' # --------------------------------------------------------------------------------------------- \\n\', 1377: \' print2trace4xi(t2xi) \\n\', 1378: \' \\n\', 1379: \' \\n\', 1380: \'#/function4xi \\n\', 1381: \' \\n\', 1382: \'# -------------------------------------------------------------------------------------------------\\n\', 1383: \'#function4xi function = "main" usage = "\\n\', 1384: \'# main function for apu2sampler4xi5test\\n\', 1385: \'#" \\n\', 1386: \'#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\\n\', 1387: \'# ------------------------------------------------------------------------------------------------- \\n\', 1388: \'def main():\\n\', 1389: \' \\n\', 1390: " print(\'=\' *33)\\n", 1391: \' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1392: \' # \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' \\n\', 1395: \' apu2sampler4xi5test() \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33)\\n", 1398: \' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \\n\', 1399: \' # \\n\', 1400: \' \\n\', 1401: " print(\'=\' *33) \\n", 1402: \' \\n\', 1403: \'#/function4xi\\n\', 1404: \' \\n\', 1405: \'\\n\', 1406: \'# -------------------------------------------------------------------------------------------------\\n\', 1407: \'# __main__ \\n\', 1408: \'# -------------------------------------------------------------------------------------------------\\n\', 1409: "if __name__ == \'__main__\':\\n", 1410: \' main()\\n\', 1411: \'#/program4xi\\n\', 1412: \' \\n\', 1413: \'\\n\', 1414: \'# -------------------------------------------------------------------------------------------------\\n\', 1415: \'# Recorded History \\n\', 1416: \'# ------------------------------------------------------------------------------------------------- \\n\', 1417: \'#record4xi record = "\\n\', 1418: \'# apu2sampler4xi5test.txt\\n\', 1419: \'# sense-apu2sampler4xi5test.xml\\n\', 1420: \'# reason-apu2sampler4xi5test.xml\\n\', 1421: \'# ace-apu2sampler4xi5test.xml\\n\', 1422: \'#" \\n\', 1423: \'#\\n\', 1424: \'\\n\', 1425: \'# -------------------------------------------------------------------------------------------------\\n\', 1426: \'# Legal Notice \\n\', 1427: \'# ------------------------------------------------------------------------------------------------- \\n\', 1428: \'#protect4xi protection = "copyright"\\n\', 1429: \'# owner = "Small Smart"\\n\', 1430: \'# rights = "All rights reserved"\\n\', 1431: \'# state = "California"\\n\', 1432: \'# country = "United States of America"\\n\', 1433: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1434: \'# compliance = "The California Law"\\n\', 1435: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1436: \'#/\\n\', 1437: \'\\n\', 1438: \'\\n\', 1439: \'\\n\', 1440: \'#end4xi end = "\\n\', 1441: \'# -------------------------------------------------------------------------------------------------\\n\', 1442: \'# end of apu2sampler4xi5test.py \\n\', 1443: \'# ------------------------------------------------------------------------------------------------- \\n\', 1444: \'#"\\n\', 1445: \'#/ \\n\'}}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000963': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33)\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001218': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002141': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000000518': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4apufetch2programsource4apu#000000519': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001103': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000857': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'c': Pickle2c4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001338': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000063': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000951': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001809': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4apucreate2programwithsource4apu#000002283': '{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001926': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001239': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000682': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import release2commandqueue4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002000': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001789': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000628': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __all__ = ['apu2sampler4xi5test'] \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000433': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001412': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001763': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000828': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2x4xi import Actor2x4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000208': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000534': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000176': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001796': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response])\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000457': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(CommandQs);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000000006': "{(Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8}; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001876': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000432': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000346': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001458': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002264': "{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001328': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002300': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001413': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000922': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001942': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001439': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001481': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001875': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001940': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001188': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001631': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000862': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'f': Pickle2f4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001261': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000714': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import retain2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001638': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000145': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000199': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "OCLError" usage = "error code checking"*/ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001104': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000051': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000259': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000766': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002085': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001489': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001592': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001201': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001362': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001361': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000982': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000091': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001344': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000312': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a compute context \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001151': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001917': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000445': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001955': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001312': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000440': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001488': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000986': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000788': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2m4xi import Pickle2m4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001548': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002103': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001426': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001872': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001152': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001766': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000836': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_ace4xi import xml_trace_ace4xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001377': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001303': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000615': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #profile4xi profile = "11" /\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000625': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000576': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000932': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000961': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000918': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000427': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001317': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001219': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000925': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000863': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'g': Pickle2g4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4apucreate2programwithsource4apu#000002273': '{(Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001435': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001587': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000252': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock,\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001643': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001172': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000754': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2samplercallback4apu \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001795': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001527': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001883': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001658': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000000482': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000596': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001120': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000386': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001642': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001914': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001141': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001419': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000220': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001778': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000591': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000370': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: //\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000474': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001036': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001004': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000715': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2eventcallback4apu \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001443': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000002200': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time}', 'returningfetch2programsource4apufetch2programsource4apu#000000050': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002312': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002203': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001182': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001108': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = {\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001241': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001206': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001622': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001862': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001644': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000642': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import itertools\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000022': "{(Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000397': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event eventLists[2];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002081': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001273': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000916': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000140': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'closedfetch2programsource4apufetch2programsource4apu#000002060': "{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000335': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem a_d; // device memory used for input/output \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001143': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000128': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // -----------------------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001450': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000319': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000310': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4apucreate2programwithsource4apu#000000485': '{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001233': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000489': '{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001732': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000436': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from b_d\\n");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000064': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001432': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passedfetch2programsource4apufetch2programsource4apu#000000472': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001744': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000779': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2d4xi import Pickle2d4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001705': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000447': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from a_d, should be half of data from b_d\\n");\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001367': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B050F0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000000055': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000150': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000144': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001843': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001360': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002121': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000698': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000631': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001815': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001603': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000409': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000075': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001611': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000151': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \\n"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000218': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001861': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000137': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource =\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001856': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001910': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {}\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000981': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001535': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000720': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002234': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001520': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001248': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000743': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import wait2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000713': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import release2event4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001027': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001473': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000354': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001633': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001712': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001871': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000822': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2r4xi import Actor2r4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001144': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000477': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000347': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000420': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem memList[2];\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000984': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001569': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000037': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000723': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import APU2Image4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001781': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000331': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001056': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = "\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000856': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000915': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000853': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'a': Pickle2a4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001085': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000876': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 't': Pickle2t4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001139': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001701': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000255': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000238': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001724': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000569': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000318': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001031': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000117': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000002005': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002240': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001630': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001397': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002207': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002087': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000975': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001461': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001707': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001727': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002098': '{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000164': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: };\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001500': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000002153': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000511': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000156': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \\n";\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001368': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001494': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000525': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000644': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import logging \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001433': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001376': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000000563': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4apufetch2programsource4apu#000000047': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002021': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001149': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001386': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001685': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4apufetch2programsource4apu#000000566': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000012': "{(Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000640': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002214': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001882': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys()\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000002046': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # country = "United States of America"\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4apucreate2programwithsource4apu#000002272': "{(Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001240': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000077': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001605': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001210': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001055': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001028': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000758': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000538': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000878': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'v': Pickle2v4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'passedfetch2programsource4apufetch2programsource4apu#000000502': '{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000013': '{(Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000972': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000907': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000002125': '{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000919': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000985': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001992': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000132': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'setfetch2programsource4apufetch2programsource4apu#000000595': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001702': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001200': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000848': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000241': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pos_new[gti] = p;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000102': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001820': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000763': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import set2platforminfo4xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001352': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000161': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001357': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000792': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2q4xi import Pickle2q4Xi\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001989': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001372': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000187': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Set the base time and then subtract it to make the numbers easier to read\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001932': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense())\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001728': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001477': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000744': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import write2image4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000000533': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000728': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000721': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Image module \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000620': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #contextualize4xi context = "sampler4xi.py"/\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001341': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001008': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000873': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'q': Pickle2q4Xi,\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001703': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000372': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue CPUQueue = NULL;\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000078': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000438': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\\n",i,a_h[i]);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001043': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000469': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001132': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001559': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response):\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000753': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import retain2sampler4apu\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001944': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4apucreate2programwithsource4apu#000000009': '{(Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001334': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000854': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4apucreate2programwithsource4apu#000002179': '{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time}', 'savingfetch2programsource4apufetch2programsource4apu#000000614': '{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001404': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001947': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001297': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'usingfetch2programsource4apufetch2programsource4apu#000002185': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000001772': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n; time: 08:25:27 02/18/15 FLE Standard Time}", 'returningfetch2programsource4apufetch2programsource4apu#000000481': '{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001222': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001888': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n; time: 08:25:27 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4apucreate2programwithsource4apu#000000112': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001939': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except:\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001831': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4apucreate2programwithsource4apu#000000038': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4apufetch2programsource4apu#000000552': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000266': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001961': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001418': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4apucreate2programwithsource4apu#000002306': '{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000760': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # -------------------------------------------------------------------------------------------------\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001604': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001436': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000000285': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }\t \n; time: 08:25:27 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4apucreate2programwithsource4apu#000002183': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time}', 'usingfetch2programsource4apufetch2programsource4apu#000002130': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time}", 'readfetch2programsource4apufetch2programsource4apu#000000379': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n; time: 08:25:27 02/18/15 FLE Standard Time}', 'readfetch2programsource4apufetch2programsource4apu#000001002': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: \n; time: 08:25:27 02/18/15 FLE Standard Time}'} (STEP 2C/33) OF XML_TRACE_REASON4XI - SET LEN2KB TO : 2316 --------------------------------- (STEP 3A/33) OF XML_TRACE_REASON4XI - INPUT FROM PRINT4XI REASON-METHOD: --------------------------------- analyzingfetch2programsource4apufetch2programsource4apu#000000043 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000045 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000058 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000060 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000073 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000075 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000088 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000090 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000103 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000105 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000118 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000120 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000474 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000476 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000489 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000491 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000504 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000506 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000519 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000521 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000534 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000536 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000549 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000551 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000564 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000566 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000579 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000581 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000594 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000596 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000609 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000000611 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002073 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002075 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002088 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002090 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002115 {(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} analyzingfetch2programsource4apufetch2programsource4apu#000002117 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000028 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000039 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000054 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000069 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000084 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000099 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000114 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000470 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000485 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000500 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000515 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000530 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000545 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000560 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000575 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000590 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000000605 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002069 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002084 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002100 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002111 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002127 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002138 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002149 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002160 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002171 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002182 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002193 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002204 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002215 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002226 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002237 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} callingcreate2programwithsource4apucreate2programwithsource4apu#000002248 {(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} closedfetch2programsource4apufetch2programsource4apu#000000463 {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} closedfetch2programsource4apufetch2programsource4apu#000002060 {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} createdcreate2programwithsource4apucreate2programwithsource4apu#000002291 {(Step 33B/70) created; code-created-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} decidedfetch2programsource4apufetch2programsource4apu#000000123 {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} decidedfetch2programsource4apufetch2programsource4apu#000000612 {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000027 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000038 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000053 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000068 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000083 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000098 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000113 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000469 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000484 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000499 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000514 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000529 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000544 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000559 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000574 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000589 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000000604 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002068 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002083 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002098 {(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002099 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002110 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002125 {(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002126 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002137 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002148 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002159 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002170 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002181 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002192 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002203 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002214 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002225 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002236 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} examiningcreate2programwithsource4apucreate2programwithsource4apu#000002247 {(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000008 {(Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000010 {(Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000012 {(Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000014 {(Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000016 {(Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000018 {(Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000020 {(Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000022 {(Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000037 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000052 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000067 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000082 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000097 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000112 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000468 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000483 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000498 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000513 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000528 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000543 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000558 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000573 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000588 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000000603 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002067 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002082 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002097 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002109 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002124 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002136 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002147 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002158 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002169 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002180 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002191 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002202 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002213 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002224 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002235 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002246 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} gotcreate2programwithsource4apucreate2programwithsource4apu#000002257 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000000003 {(Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000000004 {(Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:27 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000000005 {(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000000006 {(Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8}; time: 08:25:27 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000000007 {(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002262 {(Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002264 {(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002266 {(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002268 {(Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002270 {(Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002272 {(Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002274 {(Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002276 {(Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002278 {(Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002280 {(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002282 {(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002284 {(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002287 {(Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002289 {(Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002293 {(Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002295 {(Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time} initializedcreate2programwithsource4apucreate2programwithsource4apu#000002297 {(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time} openedfetch2programsource4apufetch2programsource4apu#000000124 {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} openedfetch2programsource4apufetch2programsource4apu#000000613 {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} passedcreate2programwithsource4apucreate2programwithsource4apu#000000002 {(Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000030 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000041 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000056 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000071 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000086 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000101 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000116 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000472 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000487 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000502 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000517 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000532 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000547 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000562 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000577 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000592 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000000607 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002071 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002086 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002102 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002113 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002129 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002140 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002151 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002162 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002173 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002184 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002195 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002206 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002217 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002228 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002239 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passedfetch2programsource4apufetch2programsource4apu#000002250 {(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000029 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000040 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000055 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000070 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000085 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000100 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000115 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000471 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000486 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000501 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000516 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000531 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000546 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000561 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000576 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000591 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000000606 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002070 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002085 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002101 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002112 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002128 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002139 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002150 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002161 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002172 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002183 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002194 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002205 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002216 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002227 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002238 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} passingcreate2programwithsource4apucreate2programwithsource4apu#000002249 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000036 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000051 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000066 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000081 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000096 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000111 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000467 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000482 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000497 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000512 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000527 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000542 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000557 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000572 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000587 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000000602 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002066 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002081 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002096 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002108 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002123 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002135 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002146 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002157 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002168 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002179 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002190 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002201 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002212 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002223 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002234 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002245 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} performedcreate2programwithsource4apucreate2programwithsource4apu#000002256 {(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000126 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000127 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000128 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000129 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdlib.h ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000130 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdio.h ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000131 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include CL/opencl.h ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000132 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000133 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000134 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000135 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000136 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000137 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource = ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000138 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000139 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000140 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000141 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000142 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000143 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000144 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000145 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000146 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000147 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000148 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000149 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000150 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000151 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000152 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000153 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid entries) \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000154 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000155 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000156 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n"; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000157 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000158 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000159 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000160 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000161 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000162 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000163 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000164 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000165 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000166 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000167 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void myNativeKernel(void *data) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000168 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000169 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000170 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data passed to native kernel\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000171 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i NKData-size; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000172 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i (NKData-size -5)) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000173 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000174 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000175 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000176 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000177 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000178 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000179 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000180 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000181 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000182 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_ulong baseTime = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000183 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_ulong sTime,eTime; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000184 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000185 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000186 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000187 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000188 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (baseTime == -1) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000189 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: baseTime = sTime; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000190 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000191 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Failed to get times for %s\n",eventName); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000192 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000193 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000194 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000195 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000196 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000197 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000198 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000199 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000200 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void OCLError(cl_int err, int line) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000201 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000202 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Error at line %d\n",line); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000203 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: exit(1); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000204 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000205 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000206 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000207 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000208 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000209 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000210 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000211 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000212 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000213 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000214 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000215 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000216 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000217 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000218 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000219 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000220 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000221 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000222 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000223 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000224 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000225 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000226 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000227 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000228 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000229 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000230 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000231 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000232 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000233 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000234 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000235 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000236 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000237 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000238 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000239 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000240 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: v += dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000241 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pos_new[gti] = p; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000242 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: vel[gti] = v; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000243 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000244 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000245 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000246 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000247 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000248 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000249 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000250 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000251 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000252 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000253 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos2 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000254 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000255 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000256 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000257 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000258 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000259 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000260 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000261 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000262 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000263 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000264 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000265 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000266 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000267 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000268 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000269 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000270 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000271 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000272 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000273 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000274 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000275 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000276 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000277 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000278 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000279 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000280 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000281 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000282 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000283 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000284 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000285 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000286 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000287 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000288 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "main" usage = "main"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000289 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int main() { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000290 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // OpenCL Platform, Device etc vars ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000291 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id *Devices; // OpenCL device ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000292 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_context Context; // OpenCL context ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000293 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_platform_id Platform; // OpenCL platform ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000294 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_program Program; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000295 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000296 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000297 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000298 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Get platform IDs ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000299 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000300 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000301 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000302 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get all devices ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000303 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_uint nDevices = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000304 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000305 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000306 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000307 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000308 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000309 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000310 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000311 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000312 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a compute context ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000313 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000314 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000315 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a command queue ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000316 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000317 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000318 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000319 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000320 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000321 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000322 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute program from the source buffer ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000323 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000324 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000325 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000326 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000327 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000328 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000329 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute kernel from the program ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000330 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000331 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000332 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000333 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // kernel data vars ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000334 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *a_h; // host memory used for original data and return data ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000335 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem a_d; // device memory used for input/output ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000336 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem b_d; // device memory used for output ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000337 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t entries = 64000000; // number of entries in the array ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000338 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t local = 1; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000339 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int count = 100; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000340 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000341 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000342 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i =0; i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000343 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h[i] = (1 25) + 6; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000344 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000345 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000346 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000347 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000348 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000349 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000350 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000351 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000352 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000353 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000354 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000355 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000356 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000357 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000358 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000359 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000360 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000361 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k2Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000362 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k1Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000363 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000364 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000365 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000366 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000367 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000368 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000369 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Now try enqueueing a native kernel ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000370 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000371 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000372 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue CPUQueue = NULL; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000373 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000374 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id qDevID; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000375 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_type DevType; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000376 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_exec_capabilities DevExecCap; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000377 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000378 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the device attached to this queue ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000379 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000380 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000381 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000382 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the type of this device ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000383 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000384 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000385 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000386 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000387 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000388 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000389 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // compare the device_type for this device ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000390 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000391 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000392 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CPUQueue = CommandQs[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000393 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000394 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000395 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000396 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k3Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000397 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event eventLists[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000398 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[0] = k2Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000399 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[1] = k1Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000400 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (CPUQueue != NULL) { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000401 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000402 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #ifndef NATIVEK ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000403 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000404 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000405 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000406 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000407 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000408 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000409 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000410 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000411 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000412 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000413 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000414 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000415 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #else ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000416 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Allocate and populate the data structure for the nativeKernel ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000417 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData NKData; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000418 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData.size = entries; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000419 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000420 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem memList[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000421 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[0] = a_d; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000422 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[1] = b_d; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000423 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000424 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void *memLocs[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000425 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[0] = (NKData.inData); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000426 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[1] = (NKData.outData); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000427 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000428 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Enqueue the kernel ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000429 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000430 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000431 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #endif ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000432 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000433 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000434 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000435 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000436 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000437 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000438 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000439 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000440 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000441 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("No CPU device found\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000442 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000443 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000444 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000445 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000446 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000447 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000448 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000449 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000450 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000451 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000452 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000453 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000454 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000455 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // tidy up ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000456 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(Devices); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000457 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(CommandQs); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000458 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(a_h); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000459 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000460 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000461 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000462 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000615 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #profile4xi profile = "11" / ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000616 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000617 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #program4xi program = "apu2sampler4xi5test.py" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000618 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #abstract4xi abstract = "tests apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000619 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #verify4xi verification = "11" target = "apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000620 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000621 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000622 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000623 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000624 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000625 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000626 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000627 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #interface4xi interface = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000628 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __all__ = ['apu2sampler4xi5test'] ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000629 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000630 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000631 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000632 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000633 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000634 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000635 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #standardize4xi standard = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000636 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import os ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000637 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import sys ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000638 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import threading ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000639 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _thread ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000640 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000641 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import signal ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000642 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import itertools ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000643 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import weakref ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000644 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import logging ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000645 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000646 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000647 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000648 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000649 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000650 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000651 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000652 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000653 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import version4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000654 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000655 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000656 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000657 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000658 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000659 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000660 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000661 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #process4xi process = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000662 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _multiprocessing ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000663 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000664 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000665 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000666 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000667 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000668 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000669 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000670 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pipe4xi import Pipe4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000671 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platformids4xi import get2platformids4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000672 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from queue4xi import Queue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000673 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000674 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000675 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Command queue module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000676 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000677 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import APU2CommandQueue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000678 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import create2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000679 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import flush2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000680 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import finish2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000681 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import get2commandqueueinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000682 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import release2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000683 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import retain2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000684 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import set2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000685 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import trace2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000686 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000687 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000688 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Context module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000689 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000690 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import APU2Context4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000691 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import create2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000692 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import get2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000693 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import release2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000694 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import retain2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000695 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import set2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000696 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000697 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000698 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000699 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Device module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000700 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000701 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import APU4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000702 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import init2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000703 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import set2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000704 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import get2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000705 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000706 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000707 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000708 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Event module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000709 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000710 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import APU2Event4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000711 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import create2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000712 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import get2eventinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000713 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import release2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000714 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import retain2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000715 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2eventcallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000716 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000717 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import trace2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000718 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import wait2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000719 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000720 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000721 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Image module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000722 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000723 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import APU2Image4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000724 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import create2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000725 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2imageinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000726 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2supportedimageformats4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000727 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000728 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000729 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copybuffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000730 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2readimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000731 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2writeimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000732 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2mapimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000733 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000734 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2imagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000735 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2buffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000736 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import read2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000737 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import map2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000738 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import release2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000739 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import retain2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000740 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2imagecallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000741 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000742 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import trace2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000743 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import wait2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000744 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import write2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000745 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000746 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000747 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Sampler module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000748 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000749 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import APU2Sampler4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000750 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import create2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000751 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import get2samplerinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000752 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import release2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000753 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import retain2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000754 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2samplercallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000755 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000756 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import trace2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000757 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000758 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000759 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Platform module ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000760 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000761 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000762 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import init2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000763 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import set2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000764 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import get2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000765 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000766 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000767 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Trace modules ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000768 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000769 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000770 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000771 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000772 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000773 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000774 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000775 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000776 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2a4xi import Pickle2a4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000777 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2b4xi import Pickle2b4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000778 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2c4xi import Pickle2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000779 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2d4xi import Pickle2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000780 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2e4xi import Pickle2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000781 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2f4xi import Pickle2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000782 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2g4xi import Pickle2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000783 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2h4xi import Pickle2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000784 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2i4xi import Pickle2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000785 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2j4xi import Pickle2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000786 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2k4xi import Pickle2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000787 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2l4xi import Pickle2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000788 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2m4xi import Pickle2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000789 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2n4xi import Pickle2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000790 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2o4xi import Pickle2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000791 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2p4xi import Pickle2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000792 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2q4xi import Pickle2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000793 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2r4xi import Pickle2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000794 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2s4xi import Pickle2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000795 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2t4xi import Pickle2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000796 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2u4xi import Pickle2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000797 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2v4xi import Pickle2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000798 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2w4xi import Pickle2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000799 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2x4xi import Pickle2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000800 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2y4xi import Pickle2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000801 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2z4xi import Pickle2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000802 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2_4xi import Pickle2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000803 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000804 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000805 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000806 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000807 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2c4xi import Actor2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000808 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2d4xi import Actor2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000809 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2e4xi import Actor2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000810 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2f4xi import Actor2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000811 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2g4xi import Actor2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000812 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2h4xi import Actor2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000813 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2i4xi import Actor2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000814 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2j4xi import Actor2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000815 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2k4xi import Actor2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000816 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2l4xi import Actor2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000817 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2m4xi import Actor2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000818 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2n4xi import Actor2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000819 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2o4xi import Actor2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000820 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2p4xi import Actor2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000821 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2q4xi import Actor2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000822 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2r4xi import Actor2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000823 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2s4xi import Actor2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000824 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2t4xi import Actor2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000825 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2u4xi import Actor2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000826 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2v4xi import Actor2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000827 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2w4xi import Actor2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000828 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2x4xi import Actor2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000829 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2y4xi import Actor2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000830 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2z4xi import Actor2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000831 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2_4xi import Actor2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000832 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from time4xi import time4xi # time stamp to events ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000833 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000834 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000835 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000836 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000837 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000838 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000839 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000840 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000841 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000842 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000843 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000844 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #globalize4xi globalization = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000845 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000846 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000847 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000848 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000849 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000850 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000851 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000852 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: PickleKB4Xi = { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000853 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'a': Pickle2a4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000854 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000855 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'b': Pickle2b4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000856 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000857 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'c': Pickle2c4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000858 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000859 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'd': Pickle2d4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000860 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000861 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'e': Pickle2e4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000862 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'f': Pickle2f4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000863 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'g': Pickle2g4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000864 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'h': Pickle2h4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000865 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'i': Pickle2i4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000866 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'j': Pickle2j4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000867 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'k': Pickle2k4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000868 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'l': Pickle2l4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000869 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'm': Pickle2m4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000870 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'n': Pickle2n4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000871 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'o': Pickle2o4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000872 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'p': Pickle2p4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000873 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'q': Pickle2q4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000874 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'r': Pickle2r4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000875 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 's': Pickle2s4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000876 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 't': Pickle2t4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000877 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'u': Pickle2u4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000878 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'v': Pickle2v4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000879 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'w': Pickle2w4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000880 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'x': Pickle2x4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000881 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'y': Pickle2y4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000882 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'z': Pickle2z4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000883 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: '_': Pickle2_4Xi} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000884 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000885 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000886 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000887 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000888 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000889 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000890 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000891 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000892 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000893 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000894 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000895 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000896 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000897 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000898 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000899 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000900 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000901 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000902 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000903 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000904 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000905 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000906 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000907 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000908 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000909 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000910 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000911 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000912 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000913 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000914 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000915 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000916 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000917 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000918 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000919 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000920 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000921 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000922 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000923 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000924 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000925 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000926 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000927 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000928 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000929 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000930 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000931 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000932 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000933 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000934 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000935 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced ! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000936 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000937 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000938 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000939 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000940 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000941 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000942 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000943 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000944 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000945 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000946 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000947 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000948 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000949 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000950 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000951 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000952 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000953 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000954 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000955 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000956 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000957 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000958 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000959 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000960 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000961 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000962 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000963 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000964 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000965 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000966 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000967 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000968 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000969 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000970 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000971 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # deny trace using pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000972 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000973 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000974 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000975 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000976 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000977 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000978 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000979 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000980 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000981 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000982 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000983 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000984 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000985 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000986 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000987 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000988 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000989 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000990 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000991 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000992 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000993 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000994 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000995 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000996 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000997 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000998 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000000999 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001000 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001001 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001002 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001003 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001004 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001005 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001006 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001007 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001008 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001009 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001010 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001011 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001012 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001013 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001014 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001015 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001016 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001017 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001018 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001019 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001020 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001021 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001022 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001023 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001024 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001025 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001026 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001027 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001028 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001029 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001030 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001031 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001032 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001033 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001034 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001035 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001036 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001037 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001038 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001039 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001040 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001041 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001042 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tailors trace ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001043 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001044 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001045 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001046 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001047 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001048 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001049 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001050 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001051 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001052 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001053 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001054 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001055 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001056 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001057 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: KB4Tailoring = { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001058 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'APU2Sampler4Xi': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001059 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'create2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001060 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'get2samplerinfo4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001061 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'retain2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001062 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'release2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001063 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'trace2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001064 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2samplercallback4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001065 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2sampler4apu': 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001066 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001067 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001068 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001069 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001070 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001071 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001072 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001073 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001074 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001075 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001076 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001077 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001078 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001079 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001080 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001081 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001082 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001083 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001084 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001085 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001086 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001087 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001088 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001089 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001090 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001091 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001092 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001093 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001094 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001095 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001096 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "print-trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001097 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print XML trace for sampler4apu test ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001098 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001099 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001100 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001101 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001102 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001103 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001104 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001105 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001106 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001107 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001108 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001109 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001110 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001111 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001112 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001113 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001114 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001115 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001116 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001117 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001118 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001119 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001120 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001121 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001122 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001123 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001124 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001125 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001126 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001127 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001128 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001129 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001130 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001131 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001132 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001133 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001134 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001135 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001136 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001137 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001138 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001139 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001140 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001141 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001142 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001143 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001144 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001145 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = { ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001146 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001147 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001148 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001149 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001150 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001151 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001152 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001153 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001154 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001155 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001156 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001157 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001158 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001159 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001160 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001161 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001162 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001163 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001164 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001165 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001166 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "apu2sampler4xi5test" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001167 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tests sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001168 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001169 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001170 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001171 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test(): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001172 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001173 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001174 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001175 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001176 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001177 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001178 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001179 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001180 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001181 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001182 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001183 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001184 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001185 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001186 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001187 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001188 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001189 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001190 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001191 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001192 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001193 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001194 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001195 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001196 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001197 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001198 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001199 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001200 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001201 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001202 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001203 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001204 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001205 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001206 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001207 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001208 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001209 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001210 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001211 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001212 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001213 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001214 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001215 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001216 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001217 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001218 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001219 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001220 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001221 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001222 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001223 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001224 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001225 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001226 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001227 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001228 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001229 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001230 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001231 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001232 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001233 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001234 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001235 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001236 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001237 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001238 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001239 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001240 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001241 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001242 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001243 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001244 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001245 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001246 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001247 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001248 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001249 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001250 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001251 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001252 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001253 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001254 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001255 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001256 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001257 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001258 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001259 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001260 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001261 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001262 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001263 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001264 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001265 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001266 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001267 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001268 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001269 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001270 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001271 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001272 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001273 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001274 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001275 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001276 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001277 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001278 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001279 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001280 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001281 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001282 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001283 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001284 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001285 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001286 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001287 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001288 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001289 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001290 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001291 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001292 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001293 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001294 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001295 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001296 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001297 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001298 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001299 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001300 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001301 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001302 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001303 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001304 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001305 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001306 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001307 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001308 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001309 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001310 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001311 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001312 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001313 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001314 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001315 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001316 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001317 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001318 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001319 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001320 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001321 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001322 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001323 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001324 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001325 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001326 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001327 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001328 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001329 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001330 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001331 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001332 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001333 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001334 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001335 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001336 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001337 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001338 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001339 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001340 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001341 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001342 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001343 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001344 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001345 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001346 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001347 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001348 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001349 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001350 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001351 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001352 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001353 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001354 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001355 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001356 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001357 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001358 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001359 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001360 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001361 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001362 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001363 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001364 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001365 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001366 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001367 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001368 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001369 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001370 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001371 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001372 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001373 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001374 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001375 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001376 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001377 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001378 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001379 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001380 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001381 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001382 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001383 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001384 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001385 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001386 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001387 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001388 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001389 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001390 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001391 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001392 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001393 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001394 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001395 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001396 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001397 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001398 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001399 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001400 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001401 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001402 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001403 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001404 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001405 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001406 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001407 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001408 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001409 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001410 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001411 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001412 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001413 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001414 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001415 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001416 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001417 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001418 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001419 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001420 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001421 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001422 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001423 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001424 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001425 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001426 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001427 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001428 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001429 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001430 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001431 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001432 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001433 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001434 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001435 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001436 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001437 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001438 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001439 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001440 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001441 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001442 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001443 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001444 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001445 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001446 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001447 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001448 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001449 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001450 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001451 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001452 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001453 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001454 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001455 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001456 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001457 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001458 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001459 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001460 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001461 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001462 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001463 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001464 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001465 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001466 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001467 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001468 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001469 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001470 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001471 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001472 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001473 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001474 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001475 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001476 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001477 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001478 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001479 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001480 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001481 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001482 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001483 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001484 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001485 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001486 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001487 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001488 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001489 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001490 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001491 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001492 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001493 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001494 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001495 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001496 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001497 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001498 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001499 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001500 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001501 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001502 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001503 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001504 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001505 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001506 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001507 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001508 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001509 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001510 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001511 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001512 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001513 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001514 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001515 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001516 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001517 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001518 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001519 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001520 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001521 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001522 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001523 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001524 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001525 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001526 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001527 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001528 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001529 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001530 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001531 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001532 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001533 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001534 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001535 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001536 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001537 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001538 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001539 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001540 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001541 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001542 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001543 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001544 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001545 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001546 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001547 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001548 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001549 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001550 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001551 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001552 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001553 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001554 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001555 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001556 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001557 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001558 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001559 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001560 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001561 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001562 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001563 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001564 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001565 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001566 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001567 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001568 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001569 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001570 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001571 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001572 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001573 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001574 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001575 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001576 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001577 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001578 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001579 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001580 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001581 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001582 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001583 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001584 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001585 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001586 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001587 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001588 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001589 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001590 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001591 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001592 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001593 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001594 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001595 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001596 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001597 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001598 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001599 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001600 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001601 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001602 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001603 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001604 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001605 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001606 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001607 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001608 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001609 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001610 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001611 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001612 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001613 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001614 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001615 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001616 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001617 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001618 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001619 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001620 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001621 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001622 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001623 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001624 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001625 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001626 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001627 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001628 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001629 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001630 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001631 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001632 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001633 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001634 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001635 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001636 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001637 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001638 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001639 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001640 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001641 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001642 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001643 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001644 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001645 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001646 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001647 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001648 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001649 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001650 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001651 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001652 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001653 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001654 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001655 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001656 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001657 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001658 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001659 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001660 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001661 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001662 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001663 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001664 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001665 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001666 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001667 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001668 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001669 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001670 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001671 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001672 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001673 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001674 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001675 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001676 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001677 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001678 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001679 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001680 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001681 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001682 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001683 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001684 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001685 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001686 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001687 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001688 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001689 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001690 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001691 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001692 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001693 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001694 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001695 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001696 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001697 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001698 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001699 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001700 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001701 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001702 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001703 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001704 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001705 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001706 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001707 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001708 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001709 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001710 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001711 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001712 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001713 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001714 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001715 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001716 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001717 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001718 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001719 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001720 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001721 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001722 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001723 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001724 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001725 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001726 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001727 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001728 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001729 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001730 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001731 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001732 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001733 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001734 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001735 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001736 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001737 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001738 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001739 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001740 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001741 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001742 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001743 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001744 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001745 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001746 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001747 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001748 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001749 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001750 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001751 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001752 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001753 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001754 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001755 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001756 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001757 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001758 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001759 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001760 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001761 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001762 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001763 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001764 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001765 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001766 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001767 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001768 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001769 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001770 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001771 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001772 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001773 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001774 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001775 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001776 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001777 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001778 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001779 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001780 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001781 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001782 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001783 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001784 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001785 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001786 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001787 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001788 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001789 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001790 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001791 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001792 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001793 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001794 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001795 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001796 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001797 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001798 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001799 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001800 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001801 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001802 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001803 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001804 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001805 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001806 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001807 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001808 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001809 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001810 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001811 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001812 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001813 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001814 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001815 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001816 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001817 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001818 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001819 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001820 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001821 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001822 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001823 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001824 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001825 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001826 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001827 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001828 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001829 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001830 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001831 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001832 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001833 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001834 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001835 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001836 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001837 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001838 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001839 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001840 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001841 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001842 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001843 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001844 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001845 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001846 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001847 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001848 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001849 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001850 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001851 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001852 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001853 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001854 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001855 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001856 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001857 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001858 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001859 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001860 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001861 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001862 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001863 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001864 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001865 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001866 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001867 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001868 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001869 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001870 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001871 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001872 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001873 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001874 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001875 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001876 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001877 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001878 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001879 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001880 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001881 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001882 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001883 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001884 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001885 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001886 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001887 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001888 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001889 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001890 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001891 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001892 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001893 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001894 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001895 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001896 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001897 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001898 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001899 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001900 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001901 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001902 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001903 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001904 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001905 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001906 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001907 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001908 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001909 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001910 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001911 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001912 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001913 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001914 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001915 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001916 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001917 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001918 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001919 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001920 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001921 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001922 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001923 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001924 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001925 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001926 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001927 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001928 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001929 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001930 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001931 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001932 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001933 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001934 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001935 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001936 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001937 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001938 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001939 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001940 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001941 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001942 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001943 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001944 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001945 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001946 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001947 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001948 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001949 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001950 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001951 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001952 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001953 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001954 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001955 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001956 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001957 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001958 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001959 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001960 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001961 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001962 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001963 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001964 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001965 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001966 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001967 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001968 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001969 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001970 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001971 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001972 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001973 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001974 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001975 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001976 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001977 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001978 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001979 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001980 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001981 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001982 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001983 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001984 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001985 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001986 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001987 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001988 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001989 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001990 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001991 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001992 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001993 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001994 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001995 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001996 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001997 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "main" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001998 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # main function for apu2sampler4xi5test ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000001999 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002000 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002001 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002002 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main(): ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002003 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002004 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002005 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002006 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002007 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002008 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002009 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002010 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002011 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002012 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002013 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002014 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002015 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002016 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002017 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002018 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002019 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002020 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002021 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002022 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002023 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__': ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002024 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main() ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002025 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/program4xi ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002026 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002027 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002028 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002029 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002030 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002031 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #record4xi record = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002032 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi5test.txt ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002033 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # sense-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002034 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # reason-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002035 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ace-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002036 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002037 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002038 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002039 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002040 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002041 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002042 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #protect4xi protection = "copyright" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002043 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # owner = "Small Smart" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002044 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # rights = "All rights reserved" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002045 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # state = "California" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002046 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # country = "United States of America" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002047 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002048 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # compliance = "The California Law" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002049 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002050 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002051 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002052 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002053 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002054 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #end4xi end = " ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002055 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002056 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of apu2sampler4xi5test.py ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002057 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002058 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} readfetch2programsource4apufetch2programsource4apu#000002059 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002298 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002299 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002300 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002301 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002302 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002303 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002304 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002305 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002306 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002307 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002308 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002309 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002310 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002311 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002312 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002313 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002314 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002315 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} returningcreate2programwithsource4apucreate2programwithsource4apu#000002316 {(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000034 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000035 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000050 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000065 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000080 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000095 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000110 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000466 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000481 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000496 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000511 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000526 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000541 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000556 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000571 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000586 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000000601 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002065 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002080 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002095 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002106 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002107 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002122 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002133 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002134 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002144 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002145 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002155 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002156 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002166 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002167 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002177 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002178 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002188 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002189 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002199 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002200 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002210 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002211 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002221 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002222 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002232 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002233 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002243 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002244 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002254 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} returningfetch2programsource4apufetch2programsource4apu#000002255 {(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} savedfetch2programsource4apufetch2programsource4apu#000000464 {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} savedfetch2programsource4apufetch2programsource4apu#000002061 {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} savingfetch2programsource4apufetch2programsource4apu#000000125 {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time} savingfetch2programsource4apufetch2programsource4apu#000000614 {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time} setcreate2programwithsource4apucreate2programwithsource4apu#000000024 {(Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time} setcreate2programwithsource4apucreate2programwithsource4apu#000000025 {(Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time} setcreate2programwithsource4apucreate2programwithsource4apu#000002258 {(Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} setcreate2programwithsource4apucreate2programwithsource4apu#000002259 {(Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time} setcreate2programwithsource4apucreate2programwithsource4apu#000002260 {(Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000044 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000059 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000074 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000089 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000104 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000119 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000475 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000490 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000505 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000520 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000535 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000550 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000565 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000580 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000595 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000000610 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000002074 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000002089 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} setfetch2programsource4apufetch2programsource4apu#000002116 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000032 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000033 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000046 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000047 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000048 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000049 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000061 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000062 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000063 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000064 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000076 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000077 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000078 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000079 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000091 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000092 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000093 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000094 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000106 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000107 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000108 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000109 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000121 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000122 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000465 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000477 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000478 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000479 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000480 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000492 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000493 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000494 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000495 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000507 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000508 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000509 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000510 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000522 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000523 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000524 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000525 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000537 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000538 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000539 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000540 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000552 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000553 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000554 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000555 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000567 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000568 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000569 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000570 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000582 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000583 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000584 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000585 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000597 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000598 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000599 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000000600 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002062 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002063 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002064 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002076 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002077 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002078 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002079 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002091 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002092 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002093 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002094 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002104 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002105 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002118 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002119 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002120 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002121 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002131 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002132 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002142 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002143 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002153 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002154 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002164 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002165 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002175 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002176 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002186 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002187 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002197 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002198 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002208 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002209 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002219 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002220 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002230 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002231 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002241 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002242 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002252 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time} skippedfetch2programsource4apufetch2programsource4apu#000002253 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time} startedcreate2programwithsource4apucreate2programwithsource4apu#000000001 {(Step 1A/70) started; create2programwithsource4apu-started: function create2programwithsource4apu at 0x02E15A08; time: 08:25:27 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002263 {(Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002265 {(Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002267 {(Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002269 {(Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002271 {(Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002273 {(Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002275 {(Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002277 {(Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002279 {(Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002281 {(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002283 {(Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002285 {(Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}, 'COUNT': 2, 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'SIZE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}, 'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02ED9EB0, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210), 'CODE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}, 'EVENT': {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}, 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8, 'LANGUAGE': 'Python', 'COUNT2REFERENCE': 1, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//a//', 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002286 {(Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002288 {(Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002290 {(Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002292 {(Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002294 {(Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} trycreate2programwithsource4apucreate2programwithsource4apu#000002296 {(Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000009 {(Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000011 {(Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000013 {(Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000015 {(Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000017 {(Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000019 {(Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000021 {(Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} tryingcreate2programwithsource4apucreate2programwithsource4apu#000000023 {(Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time} usingcreate2programwithsource4apucreate2programwithsource4apu#000000026 {(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: class 'apu2program4xi.DirectoryWalker'; time: 08:25:27 02/18/15 FLE Standard Time} usingcreate2programwithsource4apucreate2programwithsource4apu#000002261 {(Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000031 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000042 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000057 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000072 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000087 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000102 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000117 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000473 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000488 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000503 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000518 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000533 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000548 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000563 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000578 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000593 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000000608 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002072 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002087 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002103 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002114 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002130 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002141 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002152 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002163 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002174 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002185 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002196 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002207 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002218 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002229 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002240 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} usingfetch2programsource4apufetch2programsource4apu#000002251 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} (STEP 4A/33 XML_TRACE_REASON4XI - TRYING TO SET FILEPATH2XI 08:25:29 02/18/15 FLE Standard Time (STEP 4B/33 XML_TRACE_REASON4XI - SET FILEPATH2XI TO: E:\scope4xi\041721\zap\web\xml\reason-apu2program4xi5test.xml (STEP 5A/33 XML_TRACE_REASON4XI - OPENED XML FILE: E:\scope4xi\041721\zap\web\xml\reason-apu2program4xi5test.xml (STEP 5B/33 XML_TRACE_REASON4XI - TRYING TO WRITE HEADER FOR XML FILE: E:\scope4xi\041721\zap\web\xml\reason-apu2program4xi5test.xml (STEP 5C/33 XML_TRACE_REASON4XI - WROTE HEADER FOR XML FILE: E:\scope4xi\041721\zap\web\xml\reason-apu2program4xi5test.xml xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1A/33) analyzing; program2explore4apu-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14D/70) calling; fetch2programsource4apu-calling-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 33B/70) created; code-created-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14C/70) examining; file-examining-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 3B/70) got; context2apu-got-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 4B/70) got; device2apu-got-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 6B/70) got; queue2apu-got-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 7B/70) got; pipe2apu-got-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 8B/70) got; commandqueueinfo2apu-got-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 9B/70) got; bufferinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 10B/70) got; eventinfo2apu-got-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1C/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1D/70) initialized; function2callback4apu-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1F/70) initialized; task4program2apu-created-by-create2programwithsource4apu: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 20A/70) initialized; apu2program4xi-initialized-by-create2programwithsource4apu to: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4apu: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4apu: function trace2program4apu at 0x02E158E8; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4apu: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 23B/70) initialized; context-created-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 24B/70) initialized; device-created-by-create2programwithsource4apu: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4apu: 0; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 26B/70) initialized; queue-created-by-create2programwithsource4apu: queue4xi.Queue4Xi object at 0x02ED9EB0; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4apu: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4apu: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4apu: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31B/70) initialized; count-created-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 32B/70) initialized; directory-created-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 35B/70) initialized; language-created-by-create2programwithsource4apu: Python; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4apu: 1; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4apu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1B/70) passed; task4program2apu-to-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0A/33) passed; program2explore4apu-passed-to-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//index.html; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14E/70) performed; fetch2programsource4apu-performed-by-create2programwithsource4apu: function fetch2programsource4apu at 0x02E15C00; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // apu2dummy4xi5test.cpp ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdlib.h ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include stdio.h ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #include CL/opencl.h ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #define DEVID2 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Program source ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const char* KernelSource = ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " __kernel void simple( __global float* A) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = A[tid] + 5; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " } \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " int tid = get_global_id(0); \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " if (tid entries) \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " B[tid] = 2 * A[tid]; \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: " \n" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: "} \n"; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // native kernel data structure ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *inData; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *outData; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int size; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: }; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void myNativeKernel(void *data) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data passed to native kernel\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i NKData-size; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (i (NKData-size -5)) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_ulong baseTime = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_ulong sTime,eTime; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (baseTime == -1) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: baseTime = sTime; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Failed to get times for %s\n",eventName); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void OCLError(cl_int err, int line) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (err != CL_SUCCESS) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Error at line %d\n",line); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: exit(1); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: v += dt*a; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pos_new[gti] = p; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: vel[gti] = v; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __kernel void nbody_kern( ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float dt1, float eps, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_old, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos_new, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* vel, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __local float4* pblock, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __global float4* pos2 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int gti = get_global_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int ti = get_local_id(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int n = get_global_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nt = get_local_size(0); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int nb = n/nt; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p = pos_old[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 v = vel[gti]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float4 d = p2 - p; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float f = p2.w*invr*invr*invr; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a += f*d; /* Accumulate acceleration */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*function4xi function = "main" usage = "main"*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int main() { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // OpenCL Platform, Device etc vars ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id *Devices; // OpenCL device ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_context Context; // OpenCL context ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: static cl_platform_id Platform; // OpenCL platform ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_program Program; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_int err; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Get platform IDs ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get all devices ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_uint nDevices = -1; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a compute context ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create a command queue ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute program from the source buffer ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Create the compute kernel from the program ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // kernel data vars ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: float *a_h; // host memory used for original data and return data ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem a_d; // device memory used for input/output ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem b_d; // device memory used for output ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t entries = 64000000; // number of entries in the array ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: size_t local = 1; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: int count = 100; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i =0; i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_h[i] = (1 25) + 6; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k2Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k1Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Now try enqueueing a native kernel ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_command_queue CPUQueue = NULL; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = 0; i nDevices; i++) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_id qDevID; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_type DevType; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_device_exec_capabilities DevExecCap; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the device attached to this queue ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // get the type of this device ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // compare the device_type for this device ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: CPUQueue = CommandQs[i]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event k3Event[1]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_event eventLists[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[0] = k2Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: eventLists[1] = k1Event[0]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if (CPUQueue != NULL) { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #ifndef NATIVEK ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err,__LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #else ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Allocate and populate the data structure for the nativeKernel ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: struct myNativeKernelData NKData; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: NKData.size = entries; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: cl_mem memList[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[0] = a_d; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memList[1] = b_d; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: void *memLocs[2]; ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[0] = (NKData.inData); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: memLocs[1] = (NKData.outData); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // Enqueue the kernel ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #endif ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("No CPU device found\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: OCLError(err, __LINE__); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for (int i = (entries - 5); i entries; i++) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: // tidy up ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(Devices); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(CommandQs); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: free(a_h); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(a_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: clReleaseMemObject(b_d); ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: /*/function4xi*/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #profile4xi profile = "11" / ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #program4xi program = "apu2sampler4xi5test.py" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #abstract4xi abstract = "tests apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #verify4xi verification = "11" target = "apu2sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Public API ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #interface4xi interface = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: __all__ = ['apu2sampler4xi5test'] ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Standard Imports ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #standardize4xi standard = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import os ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import sys ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import threading ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _thread ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import signal ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import itertools ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import weakref ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import logging ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Scope4Xi imports ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import version4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Multiprocessing Imports ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #process4xi process = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: import _multiprocessing ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DragonXi imports ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #dragonize4xi dragonization = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pipe4xi import Pipe4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platformids4xi import get2platformids4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from queue4xi import Queue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Command queue module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import APU2CommandQueue4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import create2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import flush2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import finish2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import get2commandqueueinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import release2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import retain2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import set2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2commandqueue4xi import trace2commandqueue4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Context module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import APU2Context4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import create2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import get2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import release2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import retain2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2context4xi import set2context4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Device module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import APU4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import init2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import set2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2device4xi import get2apu4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Event module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import APU2Event4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import create2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import get2eventinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import release2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import retain2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2eventcallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import set2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import trace2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2event4xi import wait2event4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Image module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import APU2Image4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import create2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2imageinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import get2supportedimageformats4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copyimagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2copybuffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2readimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2writeimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import manoeuvre2mapimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2imagetobuffer4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import copy2buffertoimage4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import read2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import map2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import release2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import retain2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2imagecallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import set2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import trace2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import wait2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2image4xi import write2image4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Sampler module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import APU2Sampler4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import create2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import get2samplerinfo4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import release2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import retain2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2samplercallback4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import set2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from apu2sampler4xi import trace2sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Platform module ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import init2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import set2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from platforminfo4xi import get2platforminfo4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Trace modules ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2a4xi import Pickle2a4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2b4xi import Pickle2b4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2c4xi import Pickle2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2d4xi import Pickle2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2e4xi import Pickle2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2f4xi import Pickle2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2g4xi import Pickle2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2h4xi import Pickle2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2i4xi import Pickle2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2j4xi import Pickle2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2k4xi import Pickle2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2l4xi import Pickle2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2m4xi import Pickle2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2n4xi import Pickle2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2o4xi import Pickle2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2p4xi import Pickle2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2q4xi import Pickle2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2r4xi import Pickle2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2s4xi import Pickle2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2t4xi import Pickle2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2u4xi import Pickle2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2v4xi import Pickle2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2w4xi import Pickle2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2x4xi import Pickle2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2y4xi import Pickle2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2z4xi import Pickle2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from pickle2_4xi import Pickle2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2c4xi import Actor2c4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2d4xi import Actor2d4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2e4xi import Actor2e4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2f4xi import Actor2f4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2g4xi import Actor2g4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2h4xi import Actor2h4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2i4xi import Actor2i4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2j4xi import Actor2j4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2k4xi import Actor2k4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2l4xi import Actor2l4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2m4xi import Actor2m4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2n4xi import Actor2n4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2o4xi import Actor2o4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2p4xi import Actor2p4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2q4xi import Actor2q4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2r4xi import Actor2r4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2s4xi import Actor2s4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2t4xi import Actor2t4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2u4xi import Actor2u4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2v4xi import Actor2v4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2w4xi import Actor2w4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2x4xi import Actor2x4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2y4xi import Actor2y4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2z4xi import Actor2z4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from actor2_4xi import Actor2_4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from time4xi import time4xi # time stamp to events ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Global constants ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #globalize4xi globalization = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: PickleKB4Xi = { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'a': Pickle2a4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'b': Pickle2b4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'c': Pickle2c4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'd': Pickle2d4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'e': Pickle2e4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'f': Pickle2f4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'g': Pickle2g4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'h': Pickle2h4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'i': Pickle2i4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'j': Pickle2j4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'k': Pickle2k4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'l': Pickle2l4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'm': Pickle2m4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'n': Pickle2n4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'o': Pickle2o4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'p': Pickle2p4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'q': Pickle2q4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'r': Pickle2r4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 's': Pickle2s4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 't': Pickle2t4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'u': Pickle2u4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'v': Pickle2v4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'w': Pickle2w4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'x': Pickle2x4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'y': Pickle2y4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'z': Pickle2z4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: '_': Pickle2_4Xi} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def set2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Mark those with NACK4XI to be traced ! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = True ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: else: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: pass ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # deny trace using pickle4xi functions ! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def deny2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # A, B .... _ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2pickledb in keys2pickledb: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2dictionary in keys2dictionary: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: object2pickle = key2dictionary ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # pickle4xi(object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PICKLED object: _C4Xi, ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = object2pickle ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print('~' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # END OF LETTERS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # _, a ... z ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tailors trace ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def tailor2trace4xi(): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global PickleKB4Xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Settings to tailor trace ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #set4xi setting = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: KB4Tailoring = { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'APU2Sampler4Xi': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'create2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'get2samplerinfo4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'retain2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'release2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'trace2sampler4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2samplercallback4apu': 'NACK4XI', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'set2sampler4apu': 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: } ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PROCESS KB4Tailoring ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2tailor in keys2tailor: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set_param2xi = 'NACK4XI' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: key_param = key2tailor ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EOF KEYS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ----------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "print-trace4xi" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # print XML trace for sampler4apu test ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def print2trace4xi(t2xi): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # SENSE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2sense = { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # REASON ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2reason = { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2ace = { ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: 'debug4xi': True} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of print2trace4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "apu2sampler4xi5test" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # tests sampler4apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def apu2sampler4xi5test(): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global t2xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: global trace_object_count ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # INITIALIZE TRACE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: t2xi = Print4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: set2trace4xi() # trace all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: tailor2trace4xi() # tailor trace for this test ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # START TESTING ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = create2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4samplerinfo2apu.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: platform2xi = get2platformids4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (2) INITIALIZE DEVICE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: device2apu = init2apu4xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (3) CREATE CONTEXT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: context2apu = create2context4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE PROPERTIES - NONE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PROPERTIES'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) SET QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET PIPE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET REST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET SAMPLER - FINALLY! ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = set2sampler4apu(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = release2sampler4apu(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (14) SAMPLER CALLBACK ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4setcallback2sampler = set2samplercallback4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = trace2sampler4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CREATE WITH OBJECT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: samplerobject2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4get2samplerinfo.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CONTEXT'] = context2apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (6) DEFINE DEVICE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['DEVICE'] = device2apu ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (8) QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (9) PIPE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4set2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: xi2apu = APU2Sampler4Xi() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4create2sampler = xi2apu.create2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4create2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CODE2ERROR : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NACK2RETURN : ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # NORMALIZATION : CL_TRUE ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: callback2apu = xi2apu.set2samplercallback() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # function trace2sampler4apu at 0x00000000039676C8 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = None ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: trace2apu = xi2apu.trace2sampler() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4release2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4retain2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = {} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: keys2response = response4getinfo2sampler.keys() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: for key2response in sorted(keys2response): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # COUNT2REFERENCE : 1 ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.sense()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.reason()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: try: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print(xi2apu.ace()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # DONE - ALL TESTS ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: except: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: finally: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Print Trace ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # --------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print2trace4xi(t2xi) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #function4xi function = "main" usage = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # main function for apu2sampler4xi5test ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: def main(): ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: apu2sampler4xi5test() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: print('=' *33) ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/function4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # __main__ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: if __name__ == '__main__': ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: main() ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/program4xi ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Recorded History ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #record4xi record = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # apu2sampler4xi5test.txt ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # sense-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # reason-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ace-apu2sampler4xi5test.xml ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # Legal Notice ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #protect4xi protection = "copyright" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # owner = "Small Smart" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # rights = "All rights reserved" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # state = "California" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # country = "United States of America" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # compliance = "The California Law" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #end4xi end = " ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # end of apu2sampler4xi5test.py ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: # ------------------------------------------------------------------------------------------------- ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #" ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4apu: #/ ; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PLATFORM; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: BUFFER; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: NACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CONTEXT; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DATA2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: ACK2RETURN; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: QUEUE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: PIPE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: SIZE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DIRECTORY4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: EVENT; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: DEVICE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE2ERROR; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: FUNCTION2CALLBACK; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: CODE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: LANGUAGE4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT2REFERENCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COUNT4SOURCE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 70/70) returning; key2program4apu-returning-by-create2programwithsource4apu: COMMANDQUEUE; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1H/33) returning; fetch2programsource4apu-returning: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 3; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4apu: 1; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 11B/70) set; count2apu-set-by-create2programwithsource4apu to: 2; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 12B/70) set; dir2apu-set-by-create2programwithsource4apu to: e://scope4xi//041721//zap//lib//a//; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14B/70) set; size2source4apu-set-by-create2programwithsource4apu to: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 15B/70) set; language2apu-set-by-create2programwithsource4apu to: Python; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 17B/70) set; count2reference2apu-set-by-create2programwithbinary4apu to: 1; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4apu to: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt'); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: txt; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2context4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2device4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//index', '.html'); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: html; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4apu: e://scope4xi//041721//zap//lib//a//version4xi.py; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc'); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: pyc; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4apu: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe'); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4apu: exe; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 1A/70) started; create2programwithsource4apu-started: function create2programwithsource4apu at 0x02E15A08; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 22C0/70) try; platform-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 23A/70) try; context2apu-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 24A/70) try; device-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 25A/70) try; code2error-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 26A/70) try; queue-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 27A/70) try; pipe-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4apu: {}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31A1/70) try; task4program2apu-try-by-create2programwithsource4apu: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'POINTER2BUFFER': mmap.mmap object at 0x02EEF8E0, 'DATA2CALLBACK': {'METHOD': 'create2buffer4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2buffer4apu'}, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'SIZE': 278528}, 'COUNT': 2, 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'SIZE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445}, 'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2programwithsource4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02ED9EB0, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210), 'CODE': {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}, 'EVENT': {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'DATA2CALLBACK': {'METHOD': 'create2event4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2event4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE490, 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE530, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE6B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE690), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}, 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2program4apu at 0x02E158E8, 'LANGUAGE': 'Python', 'COUNT2REFERENCE': 1, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//a//', 'COMMANDQUEUE': {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2context4apu'}, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0, 'INFO2PRIVATE': None}, 'DATA2CALLBACK': {'METHOD': 'create2commandqueue4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4apu-failed ; time: 08:25:27 02/18/15 FLE Standard Time}', 'CLASS': 'create2commandqueue4apu'}, 'QUEUE': queue4xi.Queue4Xi object at 0x02EDE170, 'INFO2PRIVATE': None, 'PROPERTIES': None, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE430, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE410), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'DEVICE': {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2commandqueue4apu at 0x02CC66A8, 'NACK2RETURN': ' ', 'COUNT2REFERENCE': 0}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 31A2/70) try; count-try-by-create2programwithsource4apu: 2; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 32A/70) try; directory-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 33A/70) try; codetask-try-by-create2programwithsource4apu: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 594: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 595: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 596: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 597: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8\n', 598: ' # NACK2RETURN : \n', 599: ' # NORMALIZATION : CL_TRUE\n', 600: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 601: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 602: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 603: ' except:\n', 604: " print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi())\n", 605: ' \n', 606: ' \n', 607: ' \n', 608: ' \n', 609: ' # ---------------------------------------------------------------------------------------------\n', 610: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 611: ' # --------------------------------------------------------------------------------------------- \n', 612: " print('=' *33) \n", 613: " print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) \n", 614: " print('=' *33) \n", 615: ' task4getinfo2sampler = {}\n', 616: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 617: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 618: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 619: ' try:\n', 620: ' response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) \n', 621: " print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) \n", 622: ' keys2response = response4samplerinfo2apu.keys()\n', 623: ' for key2response in sorted(keys2response):\n', 624: " print(key2response, ' : ', response4samplerinfo2apu[key2response])\n", 625: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 626: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 627: ' # NORMALIZATION : CL_TRUE \n', 628: ' \n', 629: ' except:\n', 630: " print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi())\n", 631: ' \n', 632: '\n', 633: ' \n', 634: " print('=' *33) \n", 635: " print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) \n", 636: " print('=' *33) \n", 637: ' try:\n', 638: ' response4getinfo2sampler = get2samplerinfo4apu() \n', 639: ' keys2response = response4getinfo2sampler.keys()\n', 640: ' for key2response in sorted(keys2response):\n', 641: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 642: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 643: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 644: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 645: ' # CODE2ERROR : 0\n', 646: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 647: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 648: ' # COUNT2REFERENCE : 1\n', 649: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 650: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 651: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 652: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 653: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 654: ' # NACK2RETURN : \n', 655: ' # NORMALIZATION : CL_TRUE\n', 656: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 657: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 658: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 659: ' except:\n', 660: " print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi())\n", 661: ' \n', 662: ' \n', 663: ' # ---------------------------------------------------------------------------------------------\n', 664: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 665: ' # --------------------------------------------------------------------------------------------- \n', 666: " print('=' *33) \n", 667: " print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 668: " print('=' *33)\n", 669: ' \n', 670: ' # ---------------------------------------------------------------------------------------------\n', 671: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 672: ' # --------------------------------------------------------------------------------------------- \n', 673: " print('=' *33) \n", 674: " print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 675: " print('=' *33) \n", 676: ' platform2xi = {}\n', 677: ' try:\n', 678: ' platform2xi = get2platformids4xi()\n', 679: " print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 680: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 681: ' \n', 682: ' except:\n', 683: " print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 684: ' \n', 685: ' # ---------------------------------------------------------------------------------------------\n', 686: ' # (2) INITIALIZE DEVICE \n', 687: ' # --------------------------------------------------------------------------------------------- \n', 688: " print('=' *33) \n", 689: " print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) \n", 690: " print('=' *33) \n", 691: ' try:\n', 692: ' device2apu = init2apu4xi() \n', 693: " print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) \n", 694: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 695: ' \n', 696: ' except:\n', 697: " print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) \n", 698: ' \n', 699: ' \n', 700: ' # ---------------------------------------------------------------------------------------------\n', 701: ' # (3) CREATE CONTEXT \n', 702: ' # --------------------------------------------------------------------------------------------- \n', 703: " print('=' *33) \n", 704: " print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) \n", 705: " print('=' *33) \n", 706: ' try:\n', 707: ' context2apu = create2context4apu() \n', 708: " print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) \n", 709: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 710: ' \n', 711: ' except:\n', 712: " print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) \n", 713: ' \n', 714: ' \n', 715: ' \n', 716: ' # ---------------------------------------------------------------------------------------------\n', 717: ' # (4) INITIALIZE TASK DICTIONARY \n', 718: ' # --------------------------------------------------------------------------------------------- \n', 719: ' task4set2sampler = {}\n', 720: ' \n', 721: ' \n', 722: ' # ---------------------------------------------------------------------------------------------\n', 723: ' # (5) DEFINE CONTEXT - REQUIRED \n', 724: ' # --------------------------------------------------------------------------------------------- \n', 725: " task4set2sampler ['CONTEXT'] = context2apu \n", 726: ' \n', 727: ' \n', 728: ' # ---------------------------------------------------------------------------------------------\n', 729: ' # (6) DEFINE DEVICE - EXTRA \n', 730: ' # --------------------------------------------------------------------------------------------- \n', 731: " task4set2sampler ['DEVICE'] = device2apu \n", 732: ' \n', 733: ' # ---------------------------------------------------------------------------------------------\n', 734: ' # (7) DEFINE PROPERTIES - NONE \n', 735: ' # --------------------------------------------------------------------------------------------- \n', 736: " task4set2sampler ['PROPERTIES'] = None \n", 737: ' \n', 738: ' \n', 739: ' # ---------------------------------------------------------------------------------------------\n', 740: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 741: ' # --------------------------------------------------------------------------------------------- \n', 742: " task4set2sampler ['CODE2ERROR'] = 0 \n", 743: ' \n', 744: ' \n', 745: ' # ---------------------------------------------------------------------------------------------\n', 746: ' # (9) SET QUEUE - EXTRA \n', 747: ' # --------------------------------------------------------------------------------------------- \n', 748: " task4set2sampler ['QUEUE'] = None\n", 749: " print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 750: ' try: \n', 751: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 752: " print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) \n", 753: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 754: ' \n', 755: ' except:\n', 756: " print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) \n", 757: ' \n', 758: ' \n', 759: ' # ---------------------------------------------------------------------------------------------\n', 760: ' # (10) SET PIPE - EXTRA \n', 761: ' # --------------------------------------------------------------------------------------------- \n', 762: " task4set2sampler ['PIPE'] = None\n", 763: " print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 764: ' try: \n', 765: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 766: " print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) \n", 767: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 768: ' \n', 769: ' except:\n', 770: " print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) \n", 771: ' \n', 772: ' \n', 773: ' # ---------------------------------------------------------------------------------------------\n', 774: ' # (11) SET REST \n', 775: ' # --------------------------------------------------------------------------------------------- \n', 776: " task4set2sampler ['COMMANDQUEUE'] = None\n", 777: " print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 778: ' try: \n', 779: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 780: " print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 781: ' # \n', 782: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 783: " print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) \n", 784: ' # \n', 785: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 786: " print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 787: ' #\n', 788: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 789: " print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 790: ' # \n', 791: ' \n', 792: ' except:\n', 793: " print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) \n", 794: ' \n', 795: '\n', 796: ' \n', 797: ' # ---------------------------------------------------------------------------------------------\n', 798: ' # (11) SET SAMPLER - FINALLY! \n', 799: ' # --------------------------------------------------------------------------------------------- \n', 800: ' response4set2sampler = {} \n', 801: " print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) \n", 802: ' try: \n', 803: ' response4set2sampler = set2sampler4apu(task4set2sampler) \n', 804: ' \n', 805: ' keys2response = response4set2sampler.keys()\n', 806: ' for key2response in sorted(keys2response):\n', 807: " print(key2response, ' : ', response4set2sampler[key2response])\n", 808: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 809: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 810: " # BUFFER : {'CODE2ERROR': 0 ...\n", 811: ' # CODE2ERROR : 0\n', 812: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 813: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 814: ' # COUNT2REFERENCE : 1\n', 815: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 816: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 817: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 818: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 819: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8\n', 820: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 821: ' # NORMALIZATION : CL_TRUE\n', 822: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 823: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 824: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 825: ' \n', 826: ' \n', 827: ' except:\n', 828: " print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) \n", 829: ' \n', 830: ' \n', 831: ' # ---------------------------------------------------------------------------------------------\n', 832: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 833: ' # --------------------------------------------------------------------------------------------- \n', 834: ' \n', 835: ' task4release2sampler = {} \n', 836: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 837: ' response4release2sampler = {}\n', 838: ' \n', 839: " print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 840: ' # \n', 841: ' try: \n', 842: ' response4release2sampler = release2sampler4apu(task4release2sampler) \n', 843: ' \n', 844: ' keys2response = response4release2sampler.keys()\n', 845: ' for key2response in sorted(keys2response):\n', 846: " print(key2response, ' : ', response4release2sampler[key2response])\n", 847: ' # COUNT2REFERENCE : 0\n', 848: ' \n', 849: ' except:\n', 850: " print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 851: ' \n', 852: ' task4getinfo2sampler = {}\n', 853: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 854: ' \n', 855: " print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 856: ' # \n', 857: ' try: \n', 858: ' response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) \n', 859: ' keys2response = response4getinfo2sampler.keys()\n', 860: ' \n', 861: ' for key2response in sorted(keys2response):\n', 862: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 863: ' # COUNT2REFERENCE : 0\n', 864: ' \n', 865: ' except:\n', 866: " print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 867: ' \n', 868: ' \n', 869: ' # ---------------------------------------------------------------------------------------------\n', 870: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 871: ' # --------------------------------------------------------------------------------------------- \n', 872: ' task4retain2sampler = {}\n', 873: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 874: ' response4retain2sampler = {}\n', 875: " print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 876: ' try: \n', 877: ' response4retain2sampler = retain2sampler4apu(task4retain2sampler) \n', 878: ' \n', 879: ' keys2response = response4retain2sampler.keys()\n', 880: ' for key2response in sorted(keys2response):\n', 881: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 882: ' # COUNT2REFERENCE : 1\n', 883: ' \n', 884: ' except:\n', 885: " print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 886: ' \n', 887: ' \n', 888: ' \n', 889: ' # ---------------------------------------------------------------------------------------------\n', 890: ' # (14) SAMPLER CALLBACK \n', 891: ' # --------------------------------------------------------------------------------------------- \n', 892: ' \n', 893: " print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 894: ' try: \n', 895: ' response4setcallback2sampler = set2samplercallback4apu() \n', 896: " print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) \n", 897: ' # function trace2sampler4apu at 0x00000000039676C8\n', 898: ' except:\n', 899: " print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) \n", 900: ' \n', 901: ' \n', 902: ' # ---------------------------------------------------------------------------------------------\n', 903: ' # PHASE I: TRACE FUNCTION TESTS \n', 904: ' # --------------------------------------------------------------------------------------------- \n', 905: " print('=' *33) \n", 906: " print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 907: " print('=' *33) \n", 908: ' trace2apu = None\n', 909: ' try:\n', 910: ' trace2apu = trace2sampler4apu() \n', 911: " print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 912: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'} \n", 913: ' \n', 914: ' except:\n', 915: " print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 916: ' \n', 917: ' \n', 918: ' \n', 919: ' # ---------------------------------------------------------------------------------------------\n', 920: ' # PHASE II: CLASS TESTS \n', 921: ' # ---------------------------------------------------------------------------------------------\n', 922: " print('=' *33) \n", 923: " print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) \n", 924: " print('=' *33) \n", 925: ' # \n', 926: ' try:\n', 927: ' # ---------------------------------------------------------------------------------------------\n', 928: ' # CREATE WITH OBJECT \n', 929: ' # --------------------------------------------------------------------------------------------- \n', 930: ' samplerobject2apu = APU2Sampler4Xi()\n', 931: " print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) \n", 932: ' # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320\n', 933: ' \n', 934: ' except:\n', 935: " print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT')\n", 936: ' \n', 937: ' # ---------------------------------------------------------------------------------------------\n', 938: ' # PHASE II: CLASS TESTS - GET METHOD \n', 939: ' # --------------------------------------------------------------------------------------------- \n', 940: " print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 941: ' try: \n', 942: ' response4get2samplerinfo = samplerobject2apu.get2samplerinfo() \n', 943: ' \n', 944: ' keys2response = response4get2samplerinfo.keys()\n', 945: ' for key2response in sorted(keys2response):\n', 946: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 947: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 948: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 949: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 950: ' # CODE2ERROR : 0\n', 951: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 952: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 953: ' # COUNT2REFERENCE : 1\n', 954: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 955: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 956: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 957: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 958: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 959: ' # NACK2RETURN : \n', 960: ' # NORMALIZATION : CL_TRUE\n', 961: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 962: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 963: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 964: ' # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 965: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 966: ' # COUNT2REFERENCE : 1\n', 967: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 968: ' # NORMALIZATION : CL_TRUE\n', 969: ' \n', 970: ' except:\n', 971: " print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 972: ' \n', 973: ' task4getinfo2sampler = {}\n', 974: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 975: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 976: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 977: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 978: ' response4getinfo2sampler = {}\n', 979: " print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 980: ' # \n', 981: ' try: \n', 982: ' response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) \n', 983: ' keys2response = response4getinfo2sampler.keys()\n', 984: ' \n', 985: ' for key2response in sorted(keys2response):\n', 986: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 987: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 988: ' # COUNT2REFERENCE : 1\n', 989: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 990: ' # NORMALIZATION : CL_TRUE \n', 991: ' \n', 992: ' except:\n', 993: " print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 994: ' \n', 995: ' \n', 996: ' # ---------------------------------------------------------------------------------------------\n', 997: ' # PHASE II: CLASS TESTS - SET METHOD \n', 998: ' # --------------------------------------------------------------------------------------------- \n', 999: " print('=' *33) \n", 1000: " print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 1001: " print('=' *33) \n", 1002: ' # \n', 1003: ' \n', 1004: ' # ---------------------------------------------------------------------------------------------\n', 1005: ' # (4) INITIALIZE TASK DICTIONARY \n', 1006: ' # --------------------------------------------------------------------------------------------- \n', 1007: ' task4set2sampler = {}\n', 1008: ' \n', 1009: ' \n', 1010: ' # ---------------------------------------------------------------------------------------------\n', 1011: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1012: ' # --------------------------------------------------------------------------------------------- \n', 1013: ' \n', 1014: " task4set2sampler ['CONTEXT'] = context2apu \n", 1015: ' \n', 1016: ' \n', 1017: ' # ---------------------------------------------------------------------------------------------\n', 1018: ' # (6) DEFINE DEVICE - EXTRA \n', 1019: ' # --------------------------------------------------------------------------------------------- \n', 1020: ' \n', 1021: " task4set2sampler ['DEVICE'] = device2apu \n", 1022: ' \n', 1023: ' \n', 1024: ' # ---------------------------------------------------------------------------------------------\n', 1025: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1026: ' # --------------------------------------------------------------------------------------------- \n', 1027: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1028: ' \n', 1029: ' \n', 1030: ' # ---------------------------------------------------------------------------------------------\n', 1031: ' # (8) QUEUE - EXTRA \n', 1032: ' # --------------------------------------------------------------------------------------------- \n', 1033: " print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1034: " task4set2sampler ['QUEUE'] = None\n", 1035: ' try:\n', 1036: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1037: " print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1038: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1039: ' \n', 1040: ' except:\n', 1041: " print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1042: ' \n', 1043: ' # ---------------------------------------------------------------------------------------------\n', 1044: ' # (9) PIPE \n', 1045: ' # --------------------------------------------------------------------------------------------- \n', 1046: " print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1047: " task4set2sampler ['PIPE'] = None\n", 1048: ' try:\n', 1049: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1050: " print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1051: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1052: ' \n', 1053: ' except:\n', 1054: " print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1055: ' \n', 1056: ' # ---------------------------------------------------------------------------------------------\n', 1057: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1058: ' # --------------------------------------------------------------------------------------------- \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1060: " print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) \n", 1061: ' try: \n', 1062: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() \n", 1063: " print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1064: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1065: ' \n', 1066: ' \n', 1067: ' except:\n', 1068: " print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi())\n", 1069: ' \n', 1070: ' # ---------------------------------------------------------------------------------------------\n', 1071: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1072: ' # --------------------------------------------------------------------------------------------- \n', 1073: ' \n', 1074: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1075: ' try: \n', 1076: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1077: " print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1078: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1079: ' \n', 1080: ' \n', 1081: ' except:\n', 1082: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1083: ' \n', 1084: ' \n', 1085: ' # ---------------------------------------------------------------------------------------------\n', 1086: ' # (12) SET FILTERINGMODE - EXTRA \n', 1087: ' # --------------------------------------------------------------------------------------------- \n', 1088: ' \n', 1089: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) \n", 1090: ' try: \n', 1091: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1092: " print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) \n", 1093: ' # CL_FILTER_LINEAR\n', 1094: ' \n', 1095: ' \n', 1096: ' except:\n', 1097: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) \n", 1098: ' \n', 1099: ' \n', 1100: ' \n', 1101: ' # ---------------------------------------------------------------------------------------------\n', 1102: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1103: ' # --------------------------------------------------------------------------------------------- \n', 1104: " print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) \n", 1105: ' try: \n', 1106: ' response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) \n', 1107: ' keys2response = response4set2sampler.keys()\n', 1108: ' for key2response in sorted(keys2response):\n', 1109: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1110: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1111: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1112: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1113: ' # CODE2ERROR : 0\n', 1114: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1115: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1116: ' # COUNT2REFERENCE : 1\n', 1117: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1118: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1119: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1120: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1121: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1122: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1123: ' # NORMALIZATION : CL_TRUE\n', 1124: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1125: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1126: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1127: ' \n', 1128: ' except:\n', 1129: " print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) \n", 1130: ' \n', 1131: ' \n', 1132: ' \n', 1133: ' # ---------------------------------------------------------------------------------------------\n', 1134: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1135: ' # --------------------------------------------------------------------------------------------- \n', 1136: " print('=' *33) \n", 1137: " print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1138: " print('=' *33) \n", 1139: ' # \n', 1140: ' task4release2sampler = {}\n', 1141: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1142: ' try:\n', 1143: ' response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler)\n', 1144: ' keys2response = response4release2sampler.keys()\n', 1145: ' \n', 1146: ' for key2response in sorted(keys2response):\n', 1147: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1148: ' # COUNT2REFERENCE : 0\n', 1149: ' \n', 1150: ' except:\n', 1151: " print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1152: ' \n', 1153: ' \n', 1154: ' # ---------------------------------------------------------------------------------------------\n', 1155: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1156: ' # --------------------------------------------------------------------------------------------- \n', 1157: " print('=' *33) \n", 1158: " print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1159: " print('=' *33) \n", 1160: ' task4retain2sampler = {}\n', 1161: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1162: ' try:\n', 1163: ' response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler)\n', 1164: ' keys2response = response4retain2sampler.keys()\n', 1165: ' for key2response in sorted(keys2response):\n', 1166: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1167: ' # COUNT2REFERENCE : 1\n', 1168: ' \n', 1169: ' except:\n', 1170: " print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1171: ' \n', 1172: ' # ---------------------------------------------------------------------------------------------\n', 1173: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1174: ' # --------------------------------------------------------------------------------------------- \n', 1175: " print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) \n", 1176: ' # \n', 1177: ' try:\n', 1178: ' xi2apu = APU2Sampler4Xi() \n', 1179: ' response4create2sampler = xi2apu.create2sampler() \n', 1180: ' keys2response = response4create2sampler.keys()\n', 1181: ' for key2response in sorted(keys2response):\n', 1182: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1183: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1184: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1185: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1186: ' # CODE2ERROR : 0\n', 1187: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1188: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1189: ' # COUNT2REFERENCE : 1\n', 1190: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4apu', 'METHOD': 'create2sampler4apu'}\n", 1191: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1192: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1193: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1194: ' # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8\n', 1195: ' # NACK2RETURN : \n', 1196: ' # NORMALIZATION : CL_TRUE\n', 1197: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1198: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1199: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1200: ' \n', 1201: ' except:\n', 1202: " print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) \n", 1203: ' \n', 1204: ' # ---------------------------------------------------------------------------------------------\n', 1205: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1206: ' # --------------------------------------------------------------------------------------------- \n', 1207: " print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) \n", 1208: ' # \n', 1209: ' try:\n', 1210: ' \n', 1211: ' callback2apu = xi2apu.set2samplercallback() \n', 1212: " print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu)\n", 1213: ' # function trace2sampler4apu at 0x00000000039676C8 \n', 1214: ' \n', 1215: ' except:\n', 1216: " print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1217: ' \n', 1218: ' \n', 1219: ' # ---------------------------------------------------------------------------------------------\n', 1220: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1221: ' # --------------------------------------------------------------------------------------------- \n', 1222: " print('=' *33) \n", 1223: " print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) \n", 1224: " print('=' *33) \n", 1225: ' # \n', 1226: ' \n', 1227: ' trace2apu = None\n', 1228: ' try:\n', 1229: ' trace2apu = xi2apu.trace2sampler() \n', 1230: ' \n', 1231: " print('=' *33) \n", 1232: " print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) \n", 1233: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4apu', 'METHOD': 'trace2sampler4apu'}\n", 1234: ' \n', 1235: ' \n', 1236: " print('=' *33)\n", 1237: ' except:\n', 1238: " print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) \n", 1239: ' \n', 1240: ' \n', 1241: ' \n', 1242: ' # ---------------------------------------------------------------------------------------------\n', 1243: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1244: ' # --------------------------------------------------------------------------------------------- \n', 1245: ' task4release2sampler = {} \n', 1246: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1247: ' response4release2sampler = {}\n', 1248: ' \n', 1249: " print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1250: ' # \n', 1251: ' try: \n', 1252: ' response4release2sampler = xi2apu.release2sampler(task4release2sampler) \n', 1253: ' \n', 1254: ' keys2response = response4release2sampler.keys()\n', 1255: ' for key2response in sorted(keys2response):\n', 1256: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1257: ' # COUNT2REFERENCE : 0\n', 1258: ' except:\n', 1259: " print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) \n", 1260: ' \n', 1261: ' task4getinfo2sampler = {}\n', 1262: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1263: ' response4getinfo2sampler = {}\n', 1264: " print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1265: ' # \n', 1266: ' try: \n', 1267: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1268: ' keys2response = response4getinfo2sampler.keys()\n', 1269: ' \n', 1270: ' for key2response in sorted(keys2response):\n', 1271: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1272: ' # COUNT2REFERENCE : 0\n', 1273: ' except:\n', 1274: " print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1275: ' \n', 1276: ' \n', 1277: ' # ---------------------------------------------------------------------------------------------\n', 1278: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1279: ' # --------------------------------------------------------------------------------------------- \n', 1280: ' task4retain2sampler = {}\n', 1281: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1282: ' response4retain2sampler = {}\n', 1283: " print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) \n", 1284: ' try: \n', 1285: ' response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) \n', 1286: ' \n', 1287: ' keys2response = response4retain2sampler.keys()\n', 1288: ' for key2response in sorted(keys2response):\n', 1289: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1290: ' # COUNT2REFERENCE : 1\n', 1291: ' except:\n', 1292: " print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi())\n", 1293: ' \n', 1294: ' task4getinfo2sampler = {}\n', 1295: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1296: ' response4getinfo2sampler = {}\n', 1297: " print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1298: ' # \n', 1299: ' try: \n', 1300: ' response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) \n', 1301: ' keys2response = response4getinfo2sampler.keys()\n', 1302: ' \n', 1303: ' for key2response in sorted(keys2response):\n', 1304: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1305: ' # COUNT2REFERENCE : 1\n', 1306: ' \n', 1307: ' except:\n', 1308: " print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) \n", 1309: ' \n', 1310: ' # ---------------------------------------------------------------------------------------------\n', 1311: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1312: ' # --------------------------------------------------------------------------------------------- \n', 1313: " print('=' *33) \n", 1314: " print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1315: " print('=' *33) \n", 1316: ' \n', 1317: ' try:\n', 1318: ' print(xi2apu.sense())\n', 1319: ' \n', 1320: " print('=' *33) \n", 1321: " print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1322: " # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98}\n", 1323: ' \n', 1324: " print('=' *33)\n", 1325: ' except:\n', 1326: " print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1327: ' \n', 1328: ' # ---------------------------------------------------------------------------------------------\n', 1329: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1330: ' # --------------------------------------------------------------------------------------------- \n', 1331: " print('=' *33) \n", 1332: " print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1333: " print('=' *33) \n", 1334: ' \n', 1335: ' try:\n', 1336: ' print(xi2apu.reason())\n', 1337: ' \n', 1338: " print('=' *33) \n", 1339: " print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1340: " # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1341: ' \n', 1342: " print('=' *33) \n", 1343: ' except:\n', 1344: " print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1345: ' \n', 1346: ' # ---------------------------------------------------------------------------------------------\n', 1347: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1348: ' # --------------------------------------------------------------------------------------------- \n', 1349: " print('=' *33) \n", 1350: " print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1351: " print('=' *33) \n", 1352: ' \n', 1353: ' try:\n', 1354: ' print(xi2apu.ace())\n', 1355: ' \n', 1356: " print('=' *33) \n", 1357: " print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1358: " # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} \n", 1359: ' \n', 1360: " print('=' *33) \n", 1361: ' except:\n', 1362: " print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1363: ' \n', 1364: ' # ---------------------------------------------------------------------------------------------\n', 1365: ' # DONE - ALL TESTS \n', 1366: ' # --------------------------------------------------------------------------------------------- \n', 1367: " print('=' *33) \n", 1368: " print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1369: ' # \n', 1370: " print('=' *33) \n", 1371: ' except:\n', 1372: " print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1373: ' finally: \n', 1374: ' # --------------------------------------------------------------------------------------------- \n', 1375: ' # Print Trace\n', 1376: ' # --------------------------------------------------------------------------------------------- \n', 1377: ' print2trace4xi(t2xi) \n', 1378: ' \n', 1379: ' \n', 1380: '#/function4xi \n', 1381: ' \n', 1382: '# -------------------------------------------------------------------------------------------------\n', 1383: '#function4xi function = "main" usage = "\n', 1384: '# main function for apu2sampler4xi5test\n', 1385: '#" \n', 1386: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 1387: '# ------------------------------------------------------------------------------------------------- \n', 1388: 'def main():\n', 1389: ' \n', 1390: " print('=' *33)\n", 1391: ' print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) \n', 1392: ' # \n', 1393: " print('=' *33)\n", 1394: ' \n', 1395: ' apu2sampler4xi5test() \n', 1396: ' \n', 1397: " print('=' *33)\n", 1398: ' print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) \n', 1399: ' # \n', 1400: ' \n', 1401: " print('=' *33) \n", 1402: ' \n', 1403: '#/function4xi\n', 1404: ' \n', 1405: '\n', 1406: '# -------------------------------------------------------------------------------------------------\n', 1407: '# __main__ \n', 1408: '# -------------------------------------------------------------------------------------------------\n', 1409: "if __name__ == '__main__':\n", 1410: ' main()\n', 1411: '#/program4xi\n', 1412: ' \n', 1413: '\n', 1414: '# -------------------------------------------------------------------------------------------------\n', 1415: '# Recorded History \n', 1416: '# ------------------------------------------------------------------------------------------------- \n', 1417: '#record4xi record = "\n', 1418: '# apu2sampler4xi5test.txt\n', 1419: '# sense-apu2sampler4xi5test.xml\n', 1420: '# reason-apu2sampler4xi5test.xml\n', 1421: '# ace-apu2sampler4xi5test.xml\n', 1422: '#" \n', 1423: '#\n', 1424: '\n', 1425: '# -------------------------------------------------------------------------------------------------\n', 1426: '# Legal Notice \n', 1427: '# ------------------------------------------------------------------------------------------------- \n', 1428: '#protect4xi protection = "copyright"\n', 1429: '# owner = "Small Smart"\n', 1430: '# rights = "All rights reserved"\n', 1431: '# state = "California"\n', 1432: '# country = "United States of America"\n', 1433: '# codes = "Codes established in California and applicable to corporations in California"\n', 1434: '# compliance = "The California Law"\n', 1435: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1436: '#/\n', 1437: '\n', 1438: '\n', 1439: '\n', 1440: '#end4xi end = "\n', 1441: '# -------------------------------------------------------------------------------------------------\n', 1442: '# end of apu2sampler4xi5test.py \n', 1443: '# ------------------------------------------------------------------------------------------------- \n', 1444: '#"\n', 1445: '#/ \n'}}; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 34A/70) try; size-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 35A/70) try; language-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 36A/70) try; count2reference-try-by-create2programwithsource4apu: None; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 3A/70) trying; context2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 4A/70) trying; device2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 6A/70) trying; queue2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 7A/70) trying; pipe2apu-trying-by-create2programwithsource4apu: None; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 8A/70) trying; commandqueueinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 9A/70) trying; bufferinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 10A/70) trying; eventinfo2apu-trying-by-create2programwithsource4apu: {}; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 11A/70) trying; count2apu-trying-by-create2programwithsource4apu: 0; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4apu: class 'apu2program4xi.DirectoryWalker'; time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4apucreate2programwithsource4apu{(Step 19A/70) using; keys2task-using-by-create2programwithsource4apu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:27 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4apufetch2programsource4apu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4apu: dict_keys(['.cpp', '.cl', '.c', '.py']); time: 08:25:28 02/18/15 FLE Standard Time} --------------------------------- xml_trace_reason4xi: create end for XML file (STEP 8A/33) OF XML_TRACE_REASON4XI - TRYING TO CREATE END FOR XML FILE 08:25:29 02/18/15 FLE Standard Time --------------------------------- (STEP 8B/33) OF XML_TRACE_REASON4XI - CREATED END FOR XML FILE 08:25:29 02/18/15 FLE Standard Time --------------------------------- (STEP 33/33) OF XML_TRACE_REASON4XI - CLOSED XML FILE 08:25:29 02/18/15 FLE Standard Time --------------------------------- ================================= xml_trace_ace4xi: ACING ================================= --------------------------------- xml_trace_ace4xi: Input from Print4Xi ace method --------------------------------- xml_trace_ace4xi: set c2xi to: {'ontology_about4xi': ' \n', 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', 'ontology_comment4xi': ' Objects and values for Program of APU.\n', 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2program4xi5test.xml', 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl">\n', 'class0_comment4xi': ' Objects and values of Program of APU.\n', 'object_property_rdf4xi': ' \n', 'debug4xi': True, 'class0_id4xi': ' \n', 'object_property_comment4xi': ' 000000\n'} DirectoryWalker-using-by-create2programwithsource4apu#000000026 class 'apu2program4xi.DirectoryWalker' apu2program4xi-initialized-by-create2programwithsource4apu#000002262 {} args2callback-created-by-create2programwithsource4apu#000000005 {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed bufferinfo-created-by-create2programwithsource4apu#000002282 {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed bufferinfo-try-by-create2programwithsource4apu#000002281 {} bufferinfo2apu-got-by-create2programwithsource4apu#000000020 {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed bufferinfo2apu-trying-by-create2programwithsource4apu#000000019 {} code-created-by-create2programwithsource4apu#000002291 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed code2error-created-by-create2programwithsource4apu#000002274 0 code2error-try-by-create2programwithsource4apu#000002273 None codetask-try-by-create2programwithsource4apu#000002290 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed commandqueue-created-by-create2programwithsource4apu#000002280 {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed commandqueue-try-by-create2programwithsource4apu#000002279 {} commandqueueinfo2apu-got-by-create2programwithsource4apu#000000018 {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed commandqueueinfo2apu-trying-by-create2programwithsource4apu#000000017 {} context-created-by-create2programwithsource4apu#000002270 {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed context2apu-got-by-create2programwithsource4apu#000000010 {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed context2apu-try-by-create2programwithsource4apu#000002269 {} context2apu-trying-by-create2programwithsource4apu#000000009 {} count-created-by-create2programwithsource4apu#000002287 2 count-try-by-create2programwithsource4apu#000002286 2 count2apu-set-by-create2programwithsource4apu#000000024 2 count2apu-trying-by-create2programwithsource4apu#000000023 0 count2reference-created-by-create2programwithsource4apu#000002297 1 count2reference-try-by-create2programwithsource4apu#000002296 None count2reference2apu-set-by-create2programwithbinary4apu#000002260 1 create2programwithsource4apu-started#000000001 function create2programwithsource4apu at 0x02E15A08 data2callback-created-by-create2programwithsource4apu#000002264 {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed data2callback-try-by-create2programwithsource4apu#000002263 {} device-created-by-create2programwithsource4apu#000002272 {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'} device-try-by-create2programwithsource4apu#000002271 {} device2apu-got-by-create2programwithsource4apu#000000012 {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'} device2apu-trying-by-create2programwithsource4apu#000000011 {} dir2apu-set-by-create2programwithsource4apu#000000025 e://scope4xi//041721//zap//lib//a// directory-created-by-create2programwithsource4apu#000002289 e://scope4xi//041721//zap//lib//a// directory-examining-by-create2programwithsource4apu#000002098 e://scope4xi//041721//zap//lib//a//bin directory-examining-by-create2programwithsource4apu#000002125 e://scope4xi//041721//zap//lib//a//__pycache__ directory-try-by-create2programwithsource4apu#000002288 None eventinfo-created-by-create2programwithsource4apu#000002284 {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed eventinfo-try-by-create2programwithsource4apu#000002283 {} eventinfo2apu-got-by-create2programwithsource4apu#000000022 {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed eventinfo2apu-trying-by-create2programwithsource4apu#000000021 {} extension-skipped-by-fetch2programsource4apu#000000033 txt extension-skipped-by-fetch2programsource4apu#000002105 html extension-skipped-by-fetch2programsource4apu#000002132 pyc extension-skipped-by-fetch2programsource4apu#000002143 pyc extension-skipped-by-fetch2programsource4apu#000002154 pyc extension-skipped-by-fetch2programsource4apu#000002165 pyc extension-skipped-by-fetch2programsource4apu#000002176 pyc extension-skipped-by-fetch2programsource4apu#000002187 pyc extension-skipped-by-fetch2programsource4apu#000002198 pyc extension-skipped-by-fetch2programsource4apu#000002209 pyc extension-skipped-by-fetch2programsource4apu#000002220 pyc extension-skipped-by-fetch2programsource4apu#000002231 pyc extension-skipped-by-fetch2programsource4apu#000002242 pyc extension-skipped-by-fetch2programsource4apu#000002253 exe fetch2code4source-got-by-create2programwithsource4apu#000000037 {} fetch2code4source-got-by-create2programwithsource4apu#000000052 {} fetch2code4source-got-by-create2programwithsource4apu#000000067 {} fetch2code4source-got-by-create2programwithsource4apu#000000082 {} fetch2code4source-got-by-create2programwithsource4apu#000000097 {} fetch2code4source-got-by-create2programwithsource4apu#000000112 {} fetch2code4source-got-by-create2programwithsource4apu#000000468 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000483 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000498 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000513 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000528 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000543 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000558 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000573 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000588 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000000603 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-got-by-create2programwithsource4apu#000002067 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002082 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002097 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002109 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002124 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002136 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002147 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002158 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002169 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002180 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002191 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002202 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002213 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002224 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002235 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002246 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-got-by-create2programwithsource4apu#000002257 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2code4source-saved-by-fetch2programsource4apu#000000464 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} fetch2code4source-saved-by-fetch2programsource4apu#000002061 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed fetch2programsource4apu-calling-by-create2programwithsource4apu#000000028 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000039 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000054 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000069 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000084 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000099 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000114 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000470 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000485 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000500 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000515 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000530 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000545 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000560 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000575 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000590 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000000605 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002069 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002084 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002100 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002111 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002127 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002138 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002149 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002160 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002171 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002182 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002193 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002204 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002215 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002226 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002237 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-calling-by-create2programwithsource4apu#000002248 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000036 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000051 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000066 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000081 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000096 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000111 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000467 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000482 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000497 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000512 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000527 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000542 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000557 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000572 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000587 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000000602 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002066 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002081 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002096 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002108 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002123 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002135 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002146 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002157 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002168 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002179 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002190 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002201 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002212 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002223 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002234 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002245 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-performed-by-create2programwithsource4apu#000002256 function fetch2programsource4apu at 0x02E15C00 fetch2programsource4apu-returning#000000034 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000035 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000050 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000065 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000080 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000095 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000110 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000466 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000481 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000496 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000511 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000526 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000541 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000556 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000571 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000586 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000000601 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002065 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002080 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002095 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002106 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002107 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002122 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002133 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002134 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002144 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002145 08:25:27 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002155 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002156 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002166 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002167 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002177 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002178 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002188 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002189 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002199 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002200 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002210 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002211 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002221 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002222 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002232 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002233 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002243 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002244 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002254 08:25:28 02/18/15 FLE Standard Time fetch2programsource4apu-returning#000002255 08:25:28 02/18/15 FLE Standard Time file-examining-by-create2programwithsource4apu#000000027 e://scope4xi//041721//zap//lib//a//a2scope4xi.txt file-examining-by-create2programwithsource4apu#000000038 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py file-examining-by-create2programwithsource4apu#000000053 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py file-examining-by-create2programwithsource4apu#000000068 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py file-examining-by-create2programwithsource4apu#000000083 e://scope4xi//041721//zap//lib//a//apu2context4xi.py file-examining-by-create2programwithsource4apu#000000098 e://scope4xi//041721//zap//lib//a//apu2device4xi.py file-examining-by-create2programwithsource4apu#000000113 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp file-examining-by-create2programwithsource4apu#000000469 e://scope4xi//041721//zap//lib//a//apu2event4xi.py file-examining-by-create2programwithsource4apu#000000484 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py file-examining-by-create2programwithsource4apu#000000499 e://scope4xi//041721//zap//lib//a//apu2image4xi.py file-examining-by-create2programwithsource4apu#000000514 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py file-examining-by-create2programwithsource4apu#000000529 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py file-examining-by-create2programwithsource4apu#000000544 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py file-examining-by-create2programwithsource4apu#000000559 e://scope4xi//041721//zap//lib//a//apu2program4xi.py file-examining-by-create2programwithsource4apu#000000574 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py file-examining-by-create2programwithsource4apu#000000589 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py file-examining-by-create2programwithsource4apu#000000604 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py file-examining-by-create2programwithsource4apu#000002068 e://scope4xi//041721//zap//lib//a//apu3image4xi.py file-examining-by-create2programwithsource4apu#000002083 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py file-examining-by-create2programwithsource4apu#000002099 e://scope4xi//041721//zap//lib//a//index.html file-examining-by-create2programwithsource4apu#000002110 e://scope4xi//041721//zap//lib//a//version4xi.py file-examining-by-create2programwithsource4apu#000002126 e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002137 e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002148 e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002159 e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002170 e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002181 e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002192 e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002203 e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002214 e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002225 e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002236 e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc file-examining-by-create2programwithsource4apu#000002247 e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe file2input4source-closed-by-fetch2programsource4apu#000000463 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252' file2input4source-closed-by-fetch2programsource4apu#000002060 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252' file2input4source-opened-by-fetch2programsource4apu#000000124 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252' file2input4source-opened-by-fetch2programsource4apu#000000613 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252' file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000029 e://scope4xi//041721//zap//lib//a//a2scope4xi.txt file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000040 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000055 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000070 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000085 e://scope4xi//041721//zap//lib//a//apu2context4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000100 e://scope4xi//041721//zap//lib//a//apu2device4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000115 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000471 e://scope4xi//041721//zap//lib//a//apu2event4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000486 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000501 e://scope4xi//041721//zap//lib//a//apu2image4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000516 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000531 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000546 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000561 e://scope4xi//041721//zap//lib//a//apu2program4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000576 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000591 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000000606 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002070 e://scope4xi//041721//zap//lib//a//apu3image4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002085 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002101 e://scope4xi//041721//zap//lib//a//index.html file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002112 e://scope4xi//041721//zap//lib//a//version4xi.py file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002128 e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002139 e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002150 e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002161 e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002172 e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002183 e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002194 e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002205 e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002216 e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002227 e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002238 e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4apu-by-create2programwithsource4apu#000002249 e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe function2callback-created-by-create2programwithsource4apu#000002266 function trace2program4apu at 0x02E158E8 function2callback-try-by-create2programwithsource4apu#000002265 None function2callback4apu-created-by-create2programwithsource4apu#000000004 function trace2program4apu at 0x02E158E8 key2fecth4source-saving-by-fetch2programsource4apu#000000125 3 key2fecth4source-saving-by-fetch2programsource4apu#000000614 1 key2program4apu-returning-by-create2programwithsource4apu#000002298 PLATFORM key2program4apu-returning-by-create2programwithsource4apu#000002299 BUFFER key2program4apu-returning-by-create2programwithsource4apu#000002300 NACK2RETURN key2program4apu-returning-by-create2programwithsource4apu#000002301 CONTEXT key2program4apu-returning-by-create2programwithsource4apu#000002302 DATA2CALLBACK key2program4apu-returning-by-create2programwithsource4apu#000002303 ACK2RETURN key2program4apu-returning-by-create2programwithsource4apu#000002304 QUEUE key2program4apu-returning-by-create2programwithsource4apu#000002305 PIPE key2program4apu-returning-by-create2programwithsource4apu#000002306 SIZE4SOURCE key2program4apu-returning-by-create2programwithsource4apu#000002307 DIRECTORY4SOURCE key2program4apu-returning-by-create2programwithsource4apu#000002308 EVENT key2program4apu-returning-by-create2programwithsource4apu#000002309 DEVICE key2program4apu-returning-by-create2programwithsource4apu#000002310 CODE2ERROR key2program4apu-returning-by-create2programwithsource4apu#000002311 FUNCTION2CALLBACK key2program4apu-returning-by-create2programwithsource4apu#000002312 CODE4SOURCE key2program4apu-returning-by-create2programwithsource4apu#000002313 LANGUAGE4SOURCE key2program4apu-returning-by-create2programwithsource4apu#000002314 COUNT2REFERENCE key2program4apu-returning-by-create2programwithsource4apu#000002315 COUNT4SOURCE key2program4apu-returning-by-create2programwithsource4apu#000002316 COMMANDQUEUE keys2profile4source-using-by-fetch2programsource4apu#000000031 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000042 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000057 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000072 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000087 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000102 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000117 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000473 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000488 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000503 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000518 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000533 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000548 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000563 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000578 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000593 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000000608 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002072 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002087 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002103 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002114 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002130 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002141 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002152 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002163 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002174 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002185 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002196 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002207 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002218 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002229 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002240 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2profile4source-using-by-fetch2programsource4apu#000002251 dict_keys(['.cpp', '.cl', '.c', '.py']) keys2task-using-by-create2programwithsource4apu#000002261 ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE'] language-created-by-create2programwithsource4apu#000002295 Python language-try-by-create2programwithsource4apu#000002294 None language2apu-set-by-create2programwithsource4apu#000002259 Python line2process4source-read-by-fetch2programsource4apu#000000126 // ----------------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000127 // apu2dummy4xi5test.cpp line2process4source-read-by-fetch2programsource4apu#000000128 // ----------------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000129 #include stdlib.h line2process4source-read-by-fetch2programsource4apu#000000130 #include stdio.h line2process4source-read-by-fetch2programsource4apu#000000131 #include CL/opencl.h line2process4source-read-by-fetch2programsource4apu#000000132 line2process4source-read-by-fetch2programsource4apu#000000133 #define DEVID 0 line2process4source-read-by-fetch2programsource4apu#000000134 #define DEVID2 1 line2process4source-read-by-fetch2programsource4apu#000000135 line2process4source-read-by-fetch2programsource4apu#000000136 // Program source line2process4source-read-by-fetch2programsource4apu#000000137 const char* KernelSource = line2process4source-read-by-fetch2programsource4apu#000000138 " __kernel void simple( __global float* A) { \n" line2process4source-read-by-fetch2programsource4apu#000000139 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4apu#000000140 " A[tid] = A[tid] + 5; \n" line2process4source-read-by-fetch2programsource4apu#000000141 "} \n" line2process4source-read-by-fetch2programsource4apu#000000142 " \n" line2process4source-read-by-fetch2programsource4apu#000000143 "__kernel void simple2(__global float *A, int nLoops) { \n" line2process4source-read-by-fetch2programsource4apu#000000144 " \n" line2process4source-read-by-fetch2programsource4apu#000000145 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4apu#000000146 " for (int i = 0; i nLoops; i++) { \n" line2process4source-read-by-fetch2programsource4apu#000000147 " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" line2process4source-read-by-fetch2programsource4apu#000000148 " } \n" line2process4source-read-by-fetch2programsource4apu#000000149 "} \n" line2process4source-read-by-fetch2programsource4apu#000000150 "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" line2process4source-read-by-fetch2programsource4apu#000000151 " \n" line2process4source-read-by-fetch2programsource4apu#000000152 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4apu#000000153 " if (tid entries) \n" line2process4source-read-by-fetch2programsource4apu#000000154 " B[tid] = 2 * A[tid]; \n" line2process4source-read-by-fetch2programsource4apu#000000155 " \n" line2process4source-read-by-fetch2programsource4apu#000000156 "} \n"; line2process4source-read-by-fetch2programsource4apu#000000157 line2process4source-read-by-fetch2programsource4apu#000000158 line2process4source-read-by-fetch2programsource4apu#000000159 // native kernel data structure line2process4source-read-by-fetch2programsource4apu#000000160 struct myNativeKernelData { line2process4source-read-by-fetch2programsource4apu#000000161 float *inData; line2process4source-read-by-fetch2programsource4apu#000000162 float *outData; line2process4source-read-by-fetch2programsource4apu#000000163 int size; line2process4source-read-by-fetch2programsource4apu#000000164 }; line2process4source-read-by-fetch2programsource4apu#000000165 line2process4source-read-by-fetch2programsource4apu#000000166 /*function4xi function = "myNativeKernel" usage = "native kernel"*/ line2process4source-read-by-fetch2programsource4apu#000000167 void myNativeKernel(void *data) { line2process4source-read-by-fetch2programsource4apu#000000168 struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; line2process4source-read-by-fetch2programsource4apu#000000169 line2process4source-read-by-fetch2programsource4apu#000000170 printf("Data passed to native kernel\n"); line2process4source-read-by-fetch2programsource4apu#000000171 for (int i = 0; i NKData-size; i++) { line2process4source-read-by-fetch2programsource4apu#000000172 if (i (NKData-size -5)) line2process4source-read-by-fetch2programsource4apu#000000173 printf("n, x = %d %f\n",i,NKData-inData[i]); line2process4source-read-by-fetch2programsource4apu#000000174 NKData-outData[i] = 2*NKData-inData[i]; line2process4source-read-by-fetch2programsource4apu#000000175 } line2process4source-read-by-fetch2programsource4apu#000000176 line2process4source-read-by-fetch2programsource4apu#000000177 } line2process4source-read-by-fetch2programsource4apu#000000178 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000179 line2process4source-read-by-fetch2programsource4apu#000000180 /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ line2process4source-read-by-fetch2programsource4apu#000000181 void printKernelTimes(cl_event event,char *eventName) { line2process4source-read-by-fetch2programsource4apu#000000182 static cl_ulong baseTime = -1; line2process4source-read-by-fetch2programsource4apu#000000183 cl_ulong sTime,eTime; line2process4source-read-by-fetch2programsource4apu#000000184 cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); line2process4source-read-by-fetch2programsource4apu#000000185 err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); line2process4source-read-by-fetch2programsource4apu#000000186 line2process4source-read-by-fetch2programsource4apu#000000187 // Set the base time and then subtract it to make the numbers easier to read line2process4source-read-by-fetch2programsource4apu#000000188 if (baseTime == -1) line2process4source-read-by-fetch2programsource4apu#000000189 baseTime = sTime; line2process4source-read-by-fetch2programsource4apu#000000190 if (err != CL_SUCCESS) { line2process4source-read-by-fetch2programsource4apu#000000191 printf("Failed to get times for %s\n",eventName); line2process4source-read-by-fetch2programsource4apu#000000192 } line2process4source-read-by-fetch2programsource4apu#000000193 else { line2process4source-read-by-fetch2programsource4apu#000000194 printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); line2process4source-read-by-fetch2programsource4apu#000000195 } line2process4source-read-by-fetch2programsource4apu#000000196 } line2process4source-read-by-fetch2programsource4apu#000000197 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000198 line2process4source-read-by-fetch2programsource4apu#000000199 /*function4xi function = "OCLError" usage = "error code checking"*/ line2process4source-read-by-fetch2programsource4apu#000000200 void OCLError(cl_int err, int line) { line2process4source-read-by-fetch2programsource4apu#000000201 if (err != CL_SUCCESS) { line2process4source-read-by-fetch2programsource4apu#000000202 printf("Error at line %d\n",line); line2process4source-read-by-fetch2programsource4apu#000000203 exit(1); line2process4source-read-by-fetch2programsource4apu#000000204 } line2process4source-read-by-fetch2programsource4apu#000000205 } line2process4source-read-by-fetch2programsource4apu#000000206 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000207 line2process4source-read-by-fetch2programsource4apu#000000208 /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ line2process4source-read-by-fetch2programsource4apu#000000209 __kernel void nbody_kern( line2process4source-read-by-fetch2programsource4apu#000000210 float dt1, float eps, line2process4source-read-by-fetch2programsource4apu#000000211 __global float4* pos_old, line2process4source-read-by-fetch2programsource4apu#000000212 __global float4* pos_new, line2process4source-read-by-fetch2programsource4apu#000000213 __global float4* vel, line2process4source-read-by-fetch2programsource4apu#000000214 __local float4* pblock line2process4source-read-by-fetch2programsource4apu#000000215 ) line2process4source-read-by-fetch2programsource4apu#000000216 { line2process4source-read-by-fetch2programsource4apu#000000217 const float4 dt = (float4)(dt1,dt1,dt1,0.0f); line2process4source-read-by-fetch2programsource4apu#000000218 int gti = get_global_id(0); line2process4source-read-by-fetch2programsource4apu#000000219 int ti = get_local_id(0); line2process4source-read-by-fetch2programsource4apu#000000220 int n = get_global_size(0); line2process4source-read-by-fetch2programsource4apu#000000221 int nt = get_local_size(0); line2process4source-read-by-fetch2programsource4apu#000000222 int nb = n/nt; line2process4source-read-by-fetch2programsource4apu#000000223 float4 p = pos_old[gti]; line2process4source-read-by-fetch2programsource4apu#000000224 float4 v = vel[gti]; line2process4source-read-by-fetch2programsource4apu#000000225 float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); line2process4source-read-by-fetch2programsource4apu#000000226 for(int jb=0; jb nb; jb++) { /* Foreach block ... */ line2process4source-read-by-fetch2programsource4apu#000000227 pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4apu#000000228 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4apu#000000229 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4apu#000000230 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4apu#000000231 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4apu#000000232 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4apu#000000233 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4apu#000000234 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4apu#000000235 } line2process4source-read-by-fetch2programsource4apu#000000236 line2process4source-read-by-fetch2programsource4apu#000000237 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4apu#000000238 } line2process4source-read-by-fetch2programsource4apu#000000239 p += dt*v + 0.5f*dt*dt*a; line2process4source-read-by-fetch2programsource4apu#000000240 v += dt*a; line2process4source-read-by-fetch2programsource4apu#000000241 pos_new[gti] = p; line2process4source-read-by-fetch2programsource4apu#000000242 vel[gti] = v; line2process4source-read-by-fetch2programsource4apu#000000243 } line2process4source-read-by-fetch2programsource4apu#000000244 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000245 line2process4source-read-by-fetch2programsource4apu#000000246 /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ line2process4source-read-by-fetch2programsource4apu#000000247 __kernel void nbody_kern( line2process4source-read-by-fetch2programsource4apu#000000248 float dt1, float eps, line2process4source-read-by-fetch2programsource4apu#000000249 __global float4* pos_old, line2process4source-read-by-fetch2programsource4apu#000000250 __global float4* pos_new, line2process4source-read-by-fetch2programsource4apu#000000251 __global float4* vel, line2process4source-read-by-fetch2programsource4apu#000000252 __local float4* pblock, line2process4source-read-by-fetch2programsource4apu#000000253 __global float4* pos2 line2process4source-read-by-fetch2programsource4apu#000000254 ) { line2process4source-read-by-fetch2programsource4apu#000000255 const float4 dt = (float4)(dt1,dt1,dt1,0.0f); line2process4source-read-by-fetch2programsource4apu#000000256 int gti = get_global_id(0); line2process4source-read-by-fetch2programsource4apu#000000257 int ti = get_local_id(0); line2process4source-read-by-fetch2programsource4apu#000000258 int n = get_global_size(0); line2process4source-read-by-fetch2programsource4apu#000000259 int nt = get_local_size(0); line2process4source-read-by-fetch2programsource4apu#000000260 int nb = n/nt; line2process4source-read-by-fetch2programsource4apu#000000261 float4 p = pos_old[gti]; line2process4source-read-by-fetch2programsource4apu#000000262 float4 v = vel[gti]; line2process4source-read-by-fetch2programsource4apu#000000263 float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); line2process4source-read-by-fetch2programsource4apu#000000264 for(int jb=0; jb nb; jb++) { /* Foreach block ... */ line2process4source-read-by-fetch2programsource4apu#000000265 pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4apu#000000266 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4apu#000000267 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4apu#000000268 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4apu#000000269 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4apu#000000270 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4apu#000000271 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4apu#000000272 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4apu#000000273 } line2process4source-read-by-fetch2programsource4apu#000000274 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4apu#000000275 pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4apu#000000276 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4apu#000000277 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4apu#000000278 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4apu#000000279 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4apu#000000280 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4apu#000000281 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4apu#000000282 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4apu#000000283 } line2process4source-read-by-fetch2programsource4apu#000000284 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4apu#000000285 } line2process4source-read-by-fetch2programsource4apu#000000286 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000287 line2process4source-read-by-fetch2programsource4apu#000000288 /*function4xi function = "main" usage = "main"*/ line2process4source-read-by-fetch2programsource4apu#000000289 int main() { line2process4source-read-by-fetch2programsource4apu#000000290 // OpenCL Platform, Device etc vars line2process4source-read-by-fetch2programsource4apu#000000291 cl_device_id *Devices; // OpenCL device line2process4source-read-by-fetch2programsource4apu#000000292 cl_context Context; // OpenCL context line2process4source-read-by-fetch2programsource4apu#000000293 static cl_platform_id Platform; // OpenCL platform line2process4source-read-by-fetch2programsource4apu#000000294 cl_program Program; line2process4source-read-by-fetch2programsource4apu#000000295 cl_command_queue *CommandQs; // OpenCL command queues line2process4source-read-by-fetch2programsource4apu#000000296 cl_int err; line2process4source-read-by-fetch2programsource4apu#000000297 line2process4source-read-by-fetch2programsource4apu#000000298 // Get platform IDs line2process4source-read-by-fetch2programsource4apu#000000299 err = clGetPlatformIDs( 1, Platform, NULL); line2process4source-read-by-fetch2programsource4apu#000000300 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000301 line2process4source-read-by-fetch2programsource4apu#000000302 // get all devices line2process4source-read-by-fetch2programsource4apu#000000303 cl_uint nDevices = -1; line2process4source-read-by-fetch2programsource4apu#000000304 err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); line2process4source-read-by-fetch2programsource4apu#000000305 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000306 if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } line2process4source-read-by-fetch2programsource4apu#000000307 line2process4source-read-by-fetch2programsource4apu#000000308 Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); line2process4source-read-by-fetch2programsource4apu#000000309 err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); line2process4source-read-by-fetch2programsource4apu#000000310 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000311 line2process4source-read-by-fetch2programsource4apu#000000312 // Create a compute context line2process4source-read-by-fetch2programsource4apu#000000313 Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); line2process4source-read-by-fetch2programsource4apu#000000314 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000315 // Create a command queue line2process4source-read-by-fetch2programsource4apu#000000316 CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); line2process4source-read-by-fetch2programsource4apu#000000317 for (int i = 0; i nDevices; i++) { line2process4source-read-by-fetch2programsource4apu#000000318 CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); line2process4source-read-by-fetch2programsource4apu#000000319 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000320 } line2process4source-read-by-fetch2programsource4apu#000000321 line2process4source-read-by-fetch2programsource4apu#000000322 // Create the compute program from the source buffer line2process4source-read-by-fetch2programsource4apu#000000323 Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); line2process4source-read-by-fetch2programsource4apu#000000324 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000325 line2process4source-read-by-fetch2programsource4apu#000000326 err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); line2process4source-read-by-fetch2programsource4apu#000000327 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000328 line2process4source-read-by-fetch2programsource4apu#000000329 // Create the compute kernel from the program line2process4source-read-by-fetch2programsource4apu#000000330 cl_kernel Kernel = clCreateKernel(Program, "simple", err); line2process4source-read-by-fetch2programsource4apu#000000331 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000332 line2process4source-read-by-fetch2programsource4apu#000000333 // kernel data vars line2process4source-read-by-fetch2programsource4apu#000000334 float *a_h; // host memory used for original data and return data line2process4source-read-by-fetch2programsource4apu#000000335 cl_mem a_d; // device memory used for input/output line2process4source-read-by-fetch2programsource4apu#000000336 cl_mem b_d; // device memory used for output line2process4source-read-by-fetch2programsource4apu#000000337 size_t entries = 64000000; // number of entries in the array line2process4source-read-by-fetch2programsource4apu#000000338 size_t local = 1; line2process4source-read-by-fetch2programsource4apu#000000339 int count = 100; line2process4source-read-by-fetch2programsource4apu#000000340 line2process4source-read-by-fetch2programsource4apu#000000341 a_h = (float *)malloc(entries*sizeof(float)); line2process4source-read-by-fetch2programsource4apu#000000342 for (int i =0; i entries; i++) line2process4source-read-by-fetch2programsource4apu#000000343 a_h[i] = (1 25) + 6; line2process4source-read-by-fetch2programsource4apu#000000344 a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); line2process4source-read-by-fetch2programsource4apu#000000345 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000346 b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); line2process4source-read-by-fetch2programsource4apu#000000347 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000348 line2process4source-read-by-fetch2programsource4apu#000000349 line2process4source-read-by-fetch2programsource4apu#000000350 cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); line2process4source-read-by-fetch2programsource4apu#000000351 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000352 clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4apu#000000353 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000354 clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4apu#000000355 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000356 clSetKernelArg(Kernel2, 1, sizeof(int), count); line2process4source-read-by-fetch2programsource4apu#000000357 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000358 line2process4source-read-by-fetch2programsource4apu#000000359 clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); line2process4source-read-by-fetch2programsource4apu#000000360 line2process4source-read-by-fetch2programsource4apu#000000361 cl_event k2Event[1]; line2process4source-read-by-fetch2programsource4apu#000000362 cl_event k1Event[1]; line2process4source-read-by-fetch2programsource4apu#000000363 err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); line2process4source-read-by-fetch2programsource4apu#000000364 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000365 err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); line2process4source-read-by-fetch2programsource4apu#000000366 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000367 line2process4source-read-by-fetch2programsource4apu#000000368 // line2process4source-read-by-fetch2programsource4apu#000000369 // Now try enqueueing a native kernel line2process4source-read-by-fetch2programsource4apu#000000370 // line2process4source-read-by-fetch2programsource4apu#000000371 // Find a queue that is associated with a CPU device (assumes 1 queue per device) line2process4source-read-by-fetch2programsource4apu#000000372 cl_command_queue CPUQueue = NULL; line2process4source-read-by-fetch2programsource4apu#000000373 for (int i = 0; i nDevices; i++) { line2process4source-read-by-fetch2programsource4apu#000000374 cl_device_id qDevID; line2process4source-read-by-fetch2programsource4apu#000000375 cl_device_type DevType; line2process4source-read-by-fetch2programsource4apu#000000376 cl_device_exec_capabilities DevExecCap; line2process4source-read-by-fetch2programsource4apu#000000377 line2process4source-read-by-fetch2programsource4apu#000000378 // get the device attached to this queue line2process4source-read-by-fetch2programsource4apu#000000379 err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); line2process4source-read-by-fetch2programsource4apu#000000380 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000381 line2process4source-read-by-fetch2programsource4apu#000000382 // get the type of this device line2process4source-read-by-fetch2programsource4apu#000000383 err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); line2process4source-read-by-fetch2programsource4apu#000000384 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000385 line2process4source-read-by-fetch2programsource4apu#000000386 err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); line2process4source-read-by-fetch2programsource4apu#000000387 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000388 line2process4source-read-by-fetch2programsource4apu#000000389 // compare the device_type for this device line2process4source-read-by-fetch2programsource4apu#000000390 if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || line2process4source-read-by-fetch2programsource4apu#000000391 (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { line2process4source-read-by-fetch2programsource4apu#000000392 CPUQueue = CommandQs[i]; line2process4source-read-by-fetch2programsource4apu#000000393 } line2process4source-read-by-fetch2programsource4apu#000000394 } line2process4source-read-by-fetch2programsource4apu#000000395 line2process4source-read-by-fetch2programsource4apu#000000396 cl_event k3Event[1]; line2process4source-read-by-fetch2programsource4apu#000000397 cl_event eventLists[2]; line2process4source-read-by-fetch2programsource4apu#000000398 eventLists[0] = k2Event[0]; line2process4source-read-by-fetch2programsource4apu#000000399 eventLists[1] = k1Event[0]; line2process4source-read-by-fetch2programsource4apu#000000400 if (CPUQueue != NULL) { line2process4source-read-by-fetch2programsource4apu#000000401 line2process4source-read-by-fetch2programsource4apu#000000402 #ifndef NATIVEK line2process4source-read-by-fetch2programsource4apu#000000403 cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); line2process4source-read-by-fetch2programsource4apu#000000404 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000405 line2process4source-read-by-fetch2programsource4apu#000000406 clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4apu#000000407 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000408 clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); line2process4source-read-by-fetch2programsource4apu#000000409 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000410 clSetKernelArg(Kernel3, 2, sizeof(int), entries); line2process4source-read-by-fetch2programsource4apu#000000411 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4apu#000000412 line2process4source-read-by-fetch2programsource4apu#000000413 err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); line2process4source-read-by-fetch2programsource4apu#000000414 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000415 #else line2process4source-read-by-fetch2programsource4apu#000000416 // Allocate and populate the data structure for the nativeKernel line2process4source-read-by-fetch2programsource4apu#000000417 struct myNativeKernelData NKData; line2process4source-read-by-fetch2programsource4apu#000000418 NKData.size = entries; line2process4source-read-by-fetch2programsource4apu#000000419 line2process4source-read-by-fetch2programsource4apu#000000420 cl_mem memList[2]; line2process4source-read-by-fetch2programsource4apu#000000421 memList[0] = a_d; line2process4source-read-by-fetch2programsource4apu#000000422 memList[1] = b_d; line2process4source-read-by-fetch2programsource4apu#000000423 line2process4source-read-by-fetch2programsource4apu#000000424 void *memLocs[2]; line2process4source-read-by-fetch2programsource4apu#000000425 memLocs[0] = (NKData.inData); line2process4source-read-by-fetch2programsource4apu#000000426 memLocs[1] = (NKData.outData); line2process4source-read-by-fetch2programsource4apu#000000427 line2process4source-read-by-fetch2programsource4apu#000000428 // Enqueue the kernel line2process4source-read-by-fetch2programsource4apu#000000429 err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); line2process4source-read-by-fetch2programsource4apu#000000430 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000431 #endif line2process4source-read-by-fetch2programsource4apu#000000432 line2process4source-read-by-fetch2programsource4apu#000000433 err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); line2process4source-read-by-fetch2programsource4apu#000000434 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000435 line2process4source-read-by-fetch2programsource4apu#000000436 printf("Data from b_d\n"); line2process4source-read-by-fetch2programsource4apu#000000437 for (int i = (entries - 5); i entries; i++) line2process4source-read-by-fetch2programsource4apu#000000438 printf("n, x = %d %f\n",i,a_h[i]); line2process4source-read-by-fetch2programsource4apu#000000439 } line2process4source-read-by-fetch2programsource4apu#000000440 else { line2process4source-read-by-fetch2programsource4apu#000000441 printf("No CPU device found\n"); line2process4source-read-by-fetch2programsource4apu#000000442 } line2process4source-read-by-fetch2programsource4apu#000000443 line2process4source-read-by-fetch2programsource4apu#000000444 err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); line2process4source-read-by-fetch2programsource4apu#000000445 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4apu#000000446 line2process4source-read-by-fetch2programsource4apu#000000447 printf("Data from a_d, should be half of data from b_d\n"); line2process4source-read-by-fetch2programsource4apu#000000448 for (int i = (entries - 5); i entries; i++) line2process4source-read-by-fetch2programsource4apu#000000449 printf("n, x = %d %f\n",i,a_h[i]); line2process4source-read-by-fetch2programsource4apu#000000450 line2process4source-read-by-fetch2programsource4apu#000000451 printKernelTimes(k2Event[0],"Kernel 2"); line2process4source-read-by-fetch2programsource4apu#000000452 printKernelTimes(k1Event[0],"Kernel 1"); line2process4source-read-by-fetch2programsource4apu#000000453 printKernelTimes(k3Event[0],"Kernel 3"); line2process4source-read-by-fetch2programsource4apu#000000454 line2process4source-read-by-fetch2programsource4apu#000000455 // tidy up line2process4source-read-by-fetch2programsource4apu#000000456 free(Devices); line2process4source-read-by-fetch2programsource4apu#000000457 free(CommandQs); line2process4source-read-by-fetch2programsource4apu#000000458 free(a_h); line2process4source-read-by-fetch2programsource4apu#000000459 clReleaseMemObject(a_d); line2process4source-read-by-fetch2programsource4apu#000000460 clReleaseMemObject(b_d); line2process4source-read-by-fetch2programsource4apu#000000461 } line2process4source-read-by-fetch2programsource4apu#000000462 /*/function4xi*/ line2process4source-read-by-fetch2programsource4apu#000000615 #profile4xi profile = "11" / line2process4source-read-by-fetch2programsource4apu#000000616 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000617 #program4xi program = "apu2sampler4xi5test.py" line2process4source-read-by-fetch2programsource4apu#000000618 #abstract4xi abstract = "tests apu2sampler4xi.py"/ line2process4source-read-by-fetch2programsource4apu#000000619 #verify4xi verification = "11" target = "apu2sampler4xi.py"/ line2process4source-read-by-fetch2programsource4apu#000000620 #contextualize4xi context = "sampler4xi.py"/ line2process4source-read-by-fetch2programsource4apu#000000621 #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ line2process4source-read-by-fetch2programsource4apu#000000622 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000623 line2process4source-read-by-fetch2programsource4apu#000000624 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000625 # Public API line2process4source-read-by-fetch2programsource4apu#000000626 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000627 #interface4xi interface = " line2process4source-read-by-fetch2programsource4apu#000000628 __all__ = ['apu2sampler4xi5test'] line2process4source-read-by-fetch2programsource4apu#000000629 #" line2process4source-read-by-fetch2programsource4apu#000000630 #/ line2process4source-read-by-fetch2programsource4apu#000000631 line2process4source-read-by-fetch2programsource4apu#000000632 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000633 # Standard Imports line2process4source-read-by-fetch2programsource4apu#000000634 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000635 #standardize4xi standard = " line2process4source-read-by-fetch2programsource4apu#000000636 import os line2process4source-read-by-fetch2programsource4apu#000000637 import sys line2process4source-read-by-fetch2programsource4apu#000000638 import threading line2process4source-read-by-fetch2programsource4apu#000000639 import _thread line2process4source-read-by-fetch2programsource4apu#000000640 line2process4source-read-by-fetch2programsource4apu#000000641 import signal line2process4source-read-by-fetch2programsource4apu#000000642 import itertools line2process4source-read-by-fetch2programsource4apu#000000643 import weakref line2process4source-read-by-fetch2programsource4apu#000000644 import logging line2process4source-read-by-fetch2programsource4apu#000000645 #" line2process4source-read-by-fetch2programsource4apu#000000646 #/ line2process4source-read-by-fetch2programsource4apu#000000647 line2process4source-read-by-fetch2programsource4apu#000000648 line2process4source-read-by-fetch2programsource4apu#000000649 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000650 # Scope4Xi imports line2process4source-read-by-fetch2programsource4apu#000000651 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000652 #dragonize4xi dragonization = " line2process4source-read-by-fetch2programsource4apu#000000653 import version4xi line2process4source-read-by-fetch2programsource4apu#000000654 line2process4source-read-by-fetch2programsource4apu#000000655 #" line2process4source-read-by-fetch2programsource4apu#000000656 #/ line2process4source-read-by-fetch2programsource4apu#000000657 line2process4source-read-by-fetch2programsource4apu#000000658 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000659 # Multiprocessing Imports line2process4source-read-by-fetch2programsource4apu#000000660 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000661 #process4xi process = " line2process4source-read-by-fetch2programsource4apu#000000662 import _multiprocessing line2process4source-read-by-fetch2programsource4apu#000000663 #" line2process4source-read-by-fetch2programsource4apu#000000664 #/ line2process4source-read-by-fetch2programsource4apu#000000665 line2process4source-read-by-fetch2programsource4apu#000000666 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000667 # DragonXi imports line2process4source-read-by-fetch2programsource4apu#000000668 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000669 #dragonize4xi dragonization = " line2process4source-read-by-fetch2programsource4apu#000000670 from pipe4xi import Pipe4Xi line2process4source-read-by-fetch2programsource4apu#000000671 from platformids4xi import get2platformids4xi line2process4source-read-by-fetch2programsource4apu#000000672 from queue4xi import Queue4Xi line2process4source-read-by-fetch2programsource4apu#000000673 line2process4source-read-by-fetch2programsource4apu#000000674 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000675 # Command queue module line2process4source-read-by-fetch2programsource4apu#000000676 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000677 from apu2commandqueue4xi import APU2CommandQueue4Xi line2process4source-read-by-fetch2programsource4apu#000000678 from apu2commandqueue4xi import create2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000679 from apu2commandqueue4xi import flush2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000680 from apu2commandqueue4xi import finish2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000681 from apu2commandqueue4xi import get2commandqueueinfo4apu line2process4source-read-by-fetch2programsource4apu#000000682 from apu2commandqueue4xi import release2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000683 from apu2commandqueue4xi import retain2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000684 from apu2commandqueue4xi import set2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000685 from apu2commandqueue4xi import trace2commandqueue4apu line2process4source-read-by-fetch2programsource4apu#000000686 line2process4source-read-by-fetch2programsource4apu#000000687 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000688 # Context module line2process4source-read-by-fetch2programsource4apu#000000689 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000690 from apu2context4xi import APU2Context4Xi line2process4source-read-by-fetch2programsource4apu#000000691 from apu2context4xi import create2context4apu line2process4source-read-by-fetch2programsource4apu#000000692 from apu2context4xi import get2context4apu line2process4source-read-by-fetch2programsource4apu#000000693 from apu2context4xi import release2context4apu line2process4source-read-by-fetch2programsource4apu#000000694 from apu2context4xi import retain2context4apu line2process4source-read-by-fetch2programsource4apu#000000695 from apu2context4xi import set2context4apu line2process4source-read-by-fetch2programsource4apu#000000696 line2process4source-read-by-fetch2programsource4apu#000000697 line2process4source-read-by-fetch2programsource4apu#000000698 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000699 # Device module line2process4source-read-by-fetch2programsource4apu#000000700 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000701 from apu2device4xi import APU4Xi line2process4source-read-by-fetch2programsource4apu#000000702 from apu2device4xi import init2apu4xi line2process4source-read-by-fetch2programsource4apu#000000703 from apu2device4xi import set2apu4xi line2process4source-read-by-fetch2programsource4apu#000000704 from apu2device4xi import get2apu4xi line2process4source-read-by-fetch2programsource4apu#000000705 line2process4source-read-by-fetch2programsource4apu#000000706 line2process4source-read-by-fetch2programsource4apu#000000707 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000708 # Event module line2process4source-read-by-fetch2programsource4apu#000000709 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000710 from apu2event4xi import APU2Event4Xi line2process4source-read-by-fetch2programsource4apu#000000711 from apu2event4xi import create2event4apu line2process4source-read-by-fetch2programsource4apu#000000712 from apu2event4xi import get2eventinfo4apu line2process4source-read-by-fetch2programsource4apu#000000713 from apu2event4xi import release2event4apu line2process4source-read-by-fetch2programsource4apu#000000714 from apu2event4xi import retain2event4apu line2process4source-read-by-fetch2programsource4apu#000000715 from apu2event4xi import set2eventcallback4apu line2process4source-read-by-fetch2programsource4apu#000000716 from apu2event4xi import set2event4apu line2process4source-read-by-fetch2programsource4apu#000000717 from apu2event4xi import trace2event4apu line2process4source-read-by-fetch2programsource4apu#000000718 from apu2event4xi import wait2event4apu line2process4source-read-by-fetch2programsource4apu#000000719 line2process4source-read-by-fetch2programsource4apu#000000720 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000721 # Image module line2process4source-read-by-fetch2programsource4apu#000000722 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000723 from apu2image4xi import APU2Image4Xi line2process4source-read-by-fetch2programsource4apu#000000724 from apu2image4xi import create2image4apu line2process4source-read-by-fetch2programsource4apu#000000725 from apu2image4xi import get2imageinfo4apu line2process4source-read-by-fetch2programsource4apu#000000726 from apu2image4xi import get2supportedimageformats4apu line2process4source-read-by-fetch2programsource4apu#000000727 from apu2image4xi import manoeuvre2copyimage4apu line2process4source-read-by-fetch2programsource4apu#000000728 from apu2image4xi import manoeuvre2copyimagetobuffer4apu line2process4source-read-by-fetch2programsource4apu#000000729 from apu2image4xi import manoeuvre2copybuffertoimage4apu line2process4source-read-by-fetch2programsource4apu#000000730 from apu2image4xi import manoeuvre2readimage4apu line2process4source-read-by-fetch2programsource4apu#000000731 from apu2image4xi import manoeuvre2writeimage4apu line2process4source-read-by-fetch2programsource4apu#000000732 from apu2image4xi import manoeuvre2mapimage4apu line2process4source-read-by-fetch2programsource4apu#000000733 from apu2image4xi import copy2image4apu line2process4source-read-by-fetch2programsource4apu#000000734 from apu2image4xi import copy2imagetobuffer4apu line2process4source-read-by-fetch2programsource4apu#000000735 from apu2image4xi import copy2buffertoimage4apu line2process4source-read-by-fetch2programsource4apu#000000736 from apu2image4xi import read2image4apu line2process4source-read-by-fetch2programsource4apu#000000737 from apu2image4xi import map2image4apu line2process4source-read-by-fetch2programsource4apu#000000738 from apu2image4xi import release2image4apu line2process4source-read-by-fetch2programsource4apu#000000739 from apu2image4xi import retain2image4apu line2process4source-read-by-fetch2programsource4apu#000000740 from apu2image4xi import set2imagecallback4apu line2process4source-read-by-fetch2programsource4apu#000000741 from apu2image4xi import set2image4apu line2process4source-read-by-fetch2programsource4apu#000000742 from apu2image4xi import trace2image4apu line2process4source-read-by-fetch2programsource4apu#000000743 from apu2image4xi import wait2image4apu line2process4source-read-by-fetch2programsource4apu#000000744 from apu2image4xi import write2image4apu line2process4source-read-by-fetch2programsource4apu#000000745 line2process4source-read-by-fetch2programsource4apu#000000746 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000747 # Sampler module line2process4source-read-by-fetch2programsource4apu#000000748 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000749 from apu2sampler4xi import APU2Sampler4Xi line2process4source-read-by-fetch2programsource4apu#000000750 from apu2sampler4xi import create2sampler4apu line2process4source-read-by-fetch2programsource4apu#000000751 from apu2sampler4xi import get2samplerinfo4apu line2process4source-read-by-fetch2programsource4apu#000000752 from apu2sampler4xi import release2sampler4apu line2process4source-read-by-fetch2programsource4apu#000000753 from apu2sampler4xi import retain2sampler4apu line2process4source-read-by-fetch2programsource4apu#000000754 from apu2sampler4xi import set2samplercallback4apu line2process4source-read-by-fetch2programsource4apu#000000755 from apu2sampler4xi import set2sampler4apu line2process4source-read-by-fetch2programsource4apu#000000756 from apu2sampler4xi import trace2sampler4apu line2process4source-read-by-fetch2programsource4apu#000000757 line2process4source-read-by-fetch2programsource4apu#000000758 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000759 # Platform module line2process4source-read-by-fetch2programsource4apu#000000760 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000761 from platforminfo4xi import PlatformInfo4Xi line2process4source-read-by-fetch2programsource4apu#000000762 from platforminfo4xi import init2platforminfo4xi line2process4source-read-by-fetch2programsource4apu#000000763 from platforminfo4xi import set2platforminfo4xi line2process4source-read-by-fetch2programsource4apu#000000764 from platforminfo4xi import get2platforminfo4xi line2process4source-read-by-fetch2programsource4apu#000000765 line2process4source-read-by-fetch2programsource4apu#000000766 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000767 # Trace modules line2process4source-read-by-fetch2programsource4apu#000000768 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000769 line2process4source-read-by-fetch2programsource4apu#000000770 # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! line2process4source-read-by-fetch2programsource4apu#000000771 line2process4source-read-by-fetch2programsource4apu#000000772 from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested line2process4source-read-by-fetch2programsource4apu#000000773 from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py line2process4source-read-by-fetch2programsource4apu#000000774 line2process4source-read-by-fetch2programsource4apu#000000775 from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py line2process4source-read-by-fetch2programsource4apu#000000776 from pickle2a4xi import Pickle2a4Xi line2process4source-read-by-fetch2programsource4apu#000000777 from pickle2b4xi import Pickle2b4Xi line2process4source-read-by-fetch2programsource4apu#000000778 from pickle2c4xi import Pickle2c4Xi line2process4source-read-by-fetch2programsource4apu#000000779 from pickle2d4xi import Pickle2d4Xi line2process4source-read-by-fetch2programsource4apu#000000780 from pickle2e4xi import Pickle2e4Xi line2process4source-read-by-fetch2programsource4apu#000000781 from pickle2f4xi import Pickle2f4Xi line2process4source-read-by-fetch2programsource4apu#000000782 from pickle2g4xi import Pickle2g4Xi line2process4source-read-by-fetch2programsource4apu#000000783 from pickle2h4xi import Pickle2h4Xi line2process4source-read-by-fetch2programsource4apu#000000784 from pickle2i4xi import Pickle2i4Xi line2process4source-read-by-fetch2programsource4apu#000000785 from pickle2j4xi import Pickle2j4Xi line2process4source-read-by-fetch2programsource4apu#000000786 from pickle2k4xi import Pickle2k4Xi line2process4source-read-by-fetch2programsource4apu#000000787 from pickle2l4xi import Pickle2l4Xi line2process4source-read-by-fetch2programsource4apu#000000788 from pickle2m4xi import Pickle2m4Xi line2process4source-read-by-fetch2programsource4apu#000000789 from pickle2n4xi import Pickle2n4Xi line2process4source-read-by-fetch2programsource4apu#000000790 from pickle2o4xi import Pickle2o4Xi line2process4source-read-by-fetch2programsource4apu#000000791 from pickle2p4xi import Pickle2p4Xi line2process4source-read-by-fetch2programsource4apu#000000792 from pickle2q4xi import Pickle2q4Xi line2process4source-read-by-fetch2programsource4apu#000000793 from pickle2r4xi import Pickle2r4Xi line2process4source-read-by-fetch2programsource4apu#000000794 from pickle2s4xi import Pickle2s4Xi line2process4source-read-by-fetch2programsource4apu#000000795 from pickle2t4xi import Pickle2t4Xi line2process4source-read-by-fetch2programsource4apu#000000796 from pickle2u4xi import Pickle2u4Xi line2process4source-read-by-fetch2programsource4apu#000000797 from pickle2v4xi import Pickle2v4Xi line2process4source-read-by-fetch2programsource4apu#000000798 from pickle2w4xi import Pickle2w4Xi line2process4source-read-by-fetch2programsource4apu#000000799 from pickle2x4xi import Pickle2x4Xi line2process4source-read-by-fetch2programsource4apu#000000800 from pickle2y4xi import Pickle2y4Xi line2process4source-read-by-fetch2programsource4apu#000000801 from pickle2z4xi import Pickle2z4Xi line2process4source-read-by-fetch2programsource4apu#000000802 from pickle2_4xi import Pickle2_4Xi line2process4source-read-by-fetch2programsource4apu#000000803 line2process4source-read-by-fetch2programsource4apu#000000804 line2process4source-read-by-fetch2programsource4apu#000000805 from actor2a4xi import Actor2a4Xi # define functions and class for zapping line2process4source-read-by-fetch2programsource4apu#000000806 from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! line2process4source-read-by-fetch2programsource4apu#000000807 from actor2c4xi import Actor2c4Xi line2process4source-read-by-fetch2programsource4apu#000000808 from actor2d4xi import Actor2d4Xi line2process4source-read-by-fetch2programsource4apu#000000809 from actor2e4xi import Actor2e4Xi line2process4source-read-by-fetch2programsource4apu#000000810 from actor2f4xi import Actor2f4Xi line2process4source-read-by-fetch2programsource4apu#000000811 from actor2g4xi import Actor2g4Xi line2process4source-read-by-fetch2programsource4apu#000000812 from actor2h4xi import Actor2h4Xi line2process4source-read-by-fetch2programsource4apu#000000813 from actor2i4xi import Actor2i4Xi line2process4source-read-by-fetch2programsource4apu#000000814 from actor2j4xi import Actor2j4Xi line2process4source-read-by-fetch2programsource4apu#000000815 from actor2k4xi import Actor2k4Xi line2process4source-read-by-fetch2programsource4apu#000000816 from actor2l4xi import Actor2l4Xi line2process4source-read-by-fetch2programsource4apu#000000817 from actor2m4xi import Actor2m4Xi line2process4source-read-by-fetch2programsource4apu#000000818 from actor2n4xi import Actor2n4Xi line2process4source-read-by-fetch2programsource4apu#000000819 from actor2o4xi import Actor2o4Xi line2process4source-read-by-fetch2programsource4apu#000000820 from actor2p4xi import Actor2p4Xi line2process4source-read-by-fetch2programsource4apu#000000821 from actor2q4xi import Actor2q4Xi line2process4source-read-by-fetch2programsource4apu#000000822 from actor2r4xi import Actor2r4Xi line2process4source-read-by-fetch2programsource4apu#000000823 from actor2s4xi import Actor2s4Xi line2process4source-read-by-fetch2programsource4apu#000000824 from actor2t4xi import Actor2t4Xi line2process4source-read-by-fetch2programsource4apu#000000825 from actor2u4xi import Actor2u4Xi line2process4source-read-by-fetch2programsource4apu#000000826 from actor2v4xi import Actor2v4Xi line2process4source-read-by-fetch2programsource4apu#000000827 from actor2w4xi import Actor2w4Xi line2process4source-read-by-fetch2programsource4apu#000000828 from actor2x4xi import Actor2x4Xi line2process4source-read-by-fetch2programsource4apu#000000829 from actor2y4xi import Actor2y4Xi line2process4source-read-by-fetch2programsource4apu#000000830 from actor2z4xi import Actor2z4Xi line2process4source-read-by-fetch2programsource4apu#000000831 from actor2_4xi import Actor2_4Xi line2process4source-read-by-fetch2programsource4apu#000000832 from time4xi import time4xi # time stamp to events line2process4source-read-by-fetch2programsource4apu#000000833 line2process4source-read-by-fetch2programsource4apu#000000834 from xml_trace_sense4xi import xml_trace_sense4xi # XML trace line2process4source-read-by-fetch2programsource4apu#000000835 from xml_trace_reason4xi import xml_trace_reason4xi line2process4source-read-by-fetch2programsource4apu#000000836 from xml_trace_ace4xi import xml_trace_ace4xi line2process4source-read-by-fetch2programsource4apu#000000837 #" line2process4source-read-by-fetch2programsource4apu#000000838 #/ line2process4source-read-by-fetch2programsource4apu#000000839 line2process4source-read-by-fetch2programsource4apu#000000840 line2process4source-read-by-fetch2programsource4apu#000000841 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000842 # Global constants line2process4source-read-by-fetch2programsource4apu#000000843 # ------------------------------------------------------------------------------------------------ line2process4source-read-by-fetch2programsource4apu#000000844 #globalize4xi globalization = " line2process4source-read-by-fetch2programsource4apu#000000845 line2process4source-read-by-fetch2programsource4apu#000000846 global PickleKB4Xi line2process4source-read-by-fetch2programsource4apu#000000847 line2process4source-read-by-fetch2programsource4apu#000000848 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000849 # Settings line2process4source-read-by-fetch2programsource4apu#000000850 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000851 #set4xi setting = " line2process4source-read-by-fetch2programsource4apu#000000852 PickleKB4Xi = { line2process4source-read-by-fetch2programsource4apu#000000853 'a': Pickle2a4Xi, line2process4source-read-by-fetch2programsource4apu#000000854 # line2process4source-read-by-fetch2programsource4apu#000000855 'b': Pickle2b4Xi, line2process4source-read-by-fetch2programsource4apu#000000856 # line2process4source-read-by-fetch2programsource4apu#000000857 'c': Pickle2c4Xi, line2process4source-read-by-fetch2programsource4apu#000000858 # line2process4source-read-by-fetch2programsource4apu#000000859 'd': Pickle2d4Xi, line2process4source-read-by-fetch2programsource4apu#000000860 # line2process4source-read-by-fetch2programsource4apu#000000861 'e': Pickle2e4Xi, line2process4source-read-by-fetch2programsource4apu#000000862 'f': Pickle2f4Xi, line2process4source-read-by-fetch2programsource4apu#000000863 'g': Pickle2g4Xi, line2process4source-read-by-fetch2programsource4apu#000000864 'h': Pickle2h4Xi, line2process4source-read-by-fetch2programsource4apu#000000865 'i': Pickle2i4Xi, line2process4source-read-by-fetch2programsource4apu#000000866 'j': Pickle2j4Xi, line2process4source-read-by-fetch2programsource4apu#000000867 'k': Pickle2k4Xi, line2process4source-read-by-fetch2programsource4apu#000000868 'l': Pickle2l4Xi, line2process4source-read-by-fetch2programsource4apu#000000869 'm': Pickle2m4Xi, line2process4source-read-by-fetch2programsource4apu#000000870 'n': Pickle2n4Xi, line2process4source-read-by-fetch2programsource4apu#000000871 'o': Pickle2o4Xi, line2process4source-read-by-fetch2programsource4apu#000000872 'p': Pickle2p4Xi, line2process4source-read-by-fetch2programsource4apu#000000873 'q': Pickle2q4Xi, line2process4source-read-by-fetch2programsource4apu#000000874 'r': Pickle2r4Xi, line2process4source-read-by-fetch2programsource4apu#000000875 's': Pickle2s4Xi, line2process4source-read-by-fetch2programsource4apu#000000876 't': Pickle2t4Xi, line2process4source-read-by-fetch2programsource4apu#000000877 'u': Pickle2u4Xi, line2process4source-read-by-fetch2programsource4apu#000000878 'v': Pickle2v4Xi, line2process4source-read-by-fetch2programsource4apu#000000879 'w': Pickle2w4Xi, line2process4source-read-by-fetch2programsource4apu#000000880 'x': Pickle2x4Xi, line2process4source-read-by-fetch2programsource4apu#000000881 'y': Pickle2y4Xi, line2process4source-read-by-fetch2programsource4apu#000000882 'z': Pickle2z4Xi, line2process4source-read-by-fetch2programsource4apu#000000883 '_': Pickle2_4Xi} line2process4source-read-by-fetch2programsource4apu#000000884 #" line2process4source-read-by-fetch2programsource4apu#000000885 #"/ line2process4source-read-by-fetch2programsource4apu#000000886 line2process4source-read-by-fetch2programsource4apu#000000887 line2process4source-read-by-fetch2programsource4apu#000000888 # ---------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000889 #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! line2process4source-read-by-fetch2programsource4apu#000000890 #" line2process4source-read-by-fetch2programsource4apu#000000891 # ---------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000892 def set2trace4xi(): line2process4source-read-by-fetch2programsource4apu#000000893 global t2xi line2process4source-read-by-fetch2programsource4apu#000000894 global trace_object_count line2process4source-read-by-fetch2programsource4apu#000000895 global PickleKB4Xi line2process4source-read-by-fetch2programsource4apu#000000896 line2process4source-read-by-fetch2programsource4apu#000000897 # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4apu#000000898 # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4apu#000000899 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4apu#000000900 line2process4source-read-by-fetch2programsource4apu#000000901 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000902 # A, B .... _ line2process4source-read-by-fetch2programsource4apu#000000903 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000904 keys2pickledb = sorted(PickleKB4Xi.keys()) line2process4source-read-by-fetch2programsource4apu#000000905 for key2pickledb in keys2pickledb: line2process4source-read-by-fetch2programsource4apu#000000906 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000907 # LETTERS line2process4source-read-by-fetch2programsource4apu#000000908 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000909 # print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000910 # print("STARTING LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4apu#000000911 # print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000912 line2process4source-read-by-fetch2programsource4apu#000000913 dictionary2pickle = PickleKB4Xi[key2pickledb] line2process4source-read-by-fetch2programsource4apu#000000914 # print("STARTING DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4apu#000000915 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000916 # line2process4source-read-by-fetch2programsource4apu#000000917 keys2dictionary = sorted(dictionary2pickle.keys()) line2process4source-read-by-fetch2programsource4apu#000000918 line2process4source-read-by-fetch2programsource4apu#000000919 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000920 # line2process4source-read-by-fetch2programsource4apu#000000921 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000922 for key2dictionary in keys2dictionary: line2process4source-read-by-fetch2programsource4apu#000000923 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000924 # DICTIONARY line2process4source-read-by-fetch2programsource4apu#000000925 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000926 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000927 object2pickle = key2dictionary line2process4source-read-by-fetch2programsource4apu#000000928 # print("STARTING OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000000929 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000930 # pickle4xi(object2pickle) line2process4source-read-by-fetch2programsource4apu#000000931 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000932 # print("PICKLED object: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000000933 # PICKLED object: _C4Xi, line2process4source-read-by-fetch2programsource4apu#000000934 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000935 # Mark those with NACK4XI to be traced ! line2process4source-read-by-fetch2programsource4apu#000000936 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000937 if dictionary2pickle[key2dictionary] == 'NACK4XI': line2process4source-read-by-fetch2programsource4apu#000000938 set_param2xi = True line2process4source-read-by-fetch2programsource4apu#000000939 key_param = object2pickle line2process4source-read-by-fetch2programsource4apu#000000940 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4apu#000000941 # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000000942 # line2process4source-read-by-fetch2programsource4apu#000000943 else: line2process4source-read-by-fetch2programsource4apu#000000944 pass line2process4source-read-by-fetch2programsource4apu#000000945 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000946 # END OF DICTIONARY line2process4source-read-by-fetch2programsource4apu#000000947 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000948 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000949 # END OF LETTERS line2process4source-read-by-fetch2programsource4apu#000000950 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000951 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000952 # print("COMPLETED DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4apu#000000953 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000000954 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000955 # line2process4source-read-by-fetch2programsource4apu#000000956 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000957 # print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000958 # print("COMPLETED LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4apu#000000959 # print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000960 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000961 # line2process4source-read-by-fetch2programsource4apu#000000962 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000963 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000964 print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4apu#000000965 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000000966 #/function4xi line2process4source-read-by-fetch2programsource4apu#000000967 line2process4source-read-by-fetch2programsource4apu#000000968 line2process4source-read-by-fetch2programsource4apu#000000969 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000970 #function4xi function = "deny2trace4xi" usage = " line2process4source-read-by-fetch2programsource4apu#000000971 # deny trace using pickle4xi functions ! line2process4source-read-by-fetch2programsource4apu#000000972 #" line2process4source-read-by-fetch2programsource4apu#000000973 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000974 def deny2trace4xi(): line2process4source-read-by-fetch2programsource4apu#000000975 global t2xi line2process4source-read-by-fetch2programsource4apu#000000976 global trace_object_count line2process4source-read-by-fetch2programsource4apu#000000977 global PickleKB4Xi line2process4source-read-by-fetch2programsource4apu#000000978 line2process4source-read-by-fetch2programsource4apu#000000979 print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4apu#000000980 print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4apu#000000981 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4apu#000000982 line2process4source-read-by-fetch2programsource4apu#000000983 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000984 # A, B .... _ line2process4source-read-by-fetch2programsource4apu#000000985 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000986 keys2pickledb = sorted(PickleKB4Xi.keys()) line2process4source-read-by-fetch2programsource4apu#000000987 for key2pickledb in keys2pickledb: line2process4source-read-by-fetch2programsource4apu#000000988 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000989 # LETTERS line2process4source-read-by-fetch2programsource4apu#000000990 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000991 # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4apu#000000992 dictionary2pickle = PickleKB4Xi[key2pickledb] line2process4source-read-by-fetch2programsource4apu#000000993 # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4apu#000000994 keys2dictionary = sorted(dictionary2pickle.keys()) line2process4source-read-by-fetch2programsource4apu#000000995 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000996 # line2process4source-read-by-fetch2programsource4apu#000000997 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000000998 for key2dictionary in keys2dictionary: line2process4source-read-by-fetch2programsource4apu#000000999 line2process4source-read-by-fetch2programsource4apu#000001000 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001001 # DICTIONARY line2process4source-read-by-fetch2programsource4apu#000001002 line2process4source-read-by-fetch2programsource4apu#000001003 object2pickle = key2dictionary line2process4source-read-by-fetch2programsource4apu#000001004 # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000001005 # pickle4xi(object2pickle) line2process4source-read-by-fetch2programsource4apu#000001006 # print("STEP: PICKLED object: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000001007 # PICKLED object: _C4Xi, line2process4source-read-by-fetch2programsource4apu#000001008 line2process4source-read-by-fetch2programsource4apu#000001009 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001010 # ACK4XI = tested .i.e. NOT to be traced! line2process4source-read-by-fetch2programsource4apu#000001011 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001012 set_param2xi = 'ACK4XI' line2process4source-read-by-fetch2programsource4apu#000001013 key_param = object2pickle line2process4source-read-by-fetch2programsource4apu#000001014 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4apu#000001015 # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000001016 line2process4source-read-by-fetch2programsource4apu#000001017 dictionary2pickle[key2dictionary] = 'ACK4XI' line2process4source-read-by-fetch2programsource4apu#000001018 line2process4source-read-by-fetch2programsource4apu#000001019 line2process4source-read-by-fetch2programsource4apu#000001020 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001021 # END OF DICTIONARY line2process4source-read-by-fetch2programsource4apu#000001022 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001023 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000001024 # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) line2process4source-read-by-fetch2programsource4apu#000001025 # print('~' *33) line2process4source-read-by-fetch2programsource4apu#000001026 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001027 # END OF LETTERS line2process4source-read-by-fetch2programsource4apu#000001028 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001029 # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4apu#000001030 # line2process4source-read-by-fetch2programsource4apu#000001031 line2process4source-read-by-fetch2programsource4apu#000001032 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001033 # line2process4source-read-by-fetch2programsource4apu#000001034 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001035 # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4apu#000001036 # _, a ... z line2process4source-read-by-fetch2programsource4apu#000001037 print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4apu#000001038 #/function4xi line2process4source-read-by-fetch2programsource4apu#000001039 line2process4source-read-by-fetch2programsource4apu#000001040 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001041 #function4xi function = "tailor2trace4xi" usage = " line2process4source-read-by-fetch2programsource4apu#000001042 # tailors trace line2process4source-read-by-fetch2programsource4apu#000001043 #" line2process4source-read-by-fetch2programsource4apu#000001044 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001045 def tailor2trace4xi(): line2process4source-read-by-fetch2programsource4apu#000001046 global trace_object_count line2process4source-read-by-fetch2programsource4apu#000001047 global PickleKB4Xi line2process4source-read-by-fetch2programsource4apu#000001048 global t2xi line2process4source-read-by-fetch2programsource4apu#000001049 line2process4source-read-by-fetch2programsource4apu#000001050 print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4apu#000001051 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4apu#000001052 line2process4source-read-by-fetch2programsource4apu#000001053 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001054 # Settings to tailor trace line2process4source-read-by-fetch2programsource4apu#000001055 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001056 #set4xi setting = " line2process4source-read-by-fetch2programsource4apu#000001057 KB4Tailoring = { line2process4source-read-by-fetch2programsource4apu#000001058 'APU2Sampler4Xi': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001059 'create2sampler4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001060 'get2samplerinfo4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001061 'retain2sampler4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001062 'release2sampler4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001063 'trace2sampler4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001064 'set2samplercallback4apu': 'NACK4XI', line2process4source-read-by-fetch2programsource4apu#000001065 'set2sampler4apu': 'NACK4XI' line2process4source-read-by-fetch2programsource4apu#000001066 } line2process4source-read-by-fetch2programsource4apu#000001067 line2process4source-read-by-fetch2programsource4apu#000001068 default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! line2process4source-read-by-fetch2programsource4apu#000001069 #"/ line2process4source-read-by-fetch2programsource4apu#000001070 line2process4source-read-by-fetch2programsource4apu#000001071 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001072 # PROCESS KB4Tailoring line2process4source-read-by-fetch2programsource4apu#000001073 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001074 keys2tailor = sorted(KB4Tailoring.keys()) line2process4source-read-by-fetch2programsource4apu#000001075 for key2tailor in keys2tailor: line2process4source-read-by-fetch2programsource4apu#000001076 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001077 # NACK4XI = NOT TESTED .I.E. TO BE TRACED! line2process4source-read-by-fetch2programsource4apu#000001078 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001079 set_param2xi = 'NACK4XI' line2process4source-read-by-fetch2programsource4apu#000001080 key_param = key2tailor line2process4source-read-by-fetch2programsource4apu#000001081 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4apu#000001082 print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) line2process4source-read-by-fetch2programsource4apu#000001083 # line2process4source-read-by-fetch2programsource4apu#000001084 line2process4source-read-by-fetch2programsource4apu#000001085 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001086 # EOF KEYS line2process4source-read-by-fetch2programsource4apu#000001087 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001088 print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) line2process4source-read-by-fetch2programsource4apu#000001089 # line2process4source-read-by-fetch2programsource4apu#000001090 line2process4source-read-by-fetch2programsource4apu#000001091 line2process4source-read-by-fetch2programsource4apu#000001092 #/function4xi line2process4source-read-by-fetch2programsource4apu#000001093 line2process4source-read-by-fetch2programsource4apu#000001094 line2process4source-read-by-fetch2programsource4apu#000001095 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001096 #function4xi function = "print-trace4xi" usage = " line2process4source-read-by-fetch2programsource4apu#000001097 # print XML trace for sampler4apu test line2process4source-read-by-fetch2programsource4apu#000001098 #" line2process4source-read-by-fetch2programsource4apu#000001099 #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ line2process4source-read-by-fetch2programsource4apu#000001100 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001101 def print2trace4xi(t2xi): line2process4source-read-by-fetch2programsource4apu#000001102 line2process4source-read-by-fetch2programsource4apu#000001103 line2process4source-read-by-fetch2programsource4apu#000001104 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001105 # SENSE line2process4source-read-by-fetch2programsource4apu#000001106 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001107 line2process4source-read-by-fetch2programsource4apu#000001108 context2sense = { line2process4source-read-by-fetch2programsource4apu#000001109 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4apu#000001110 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', line2process4source-read-by-fetch2programsource4apu#000001111 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', line2process4source-read-by-fetch2programsource4apu#000001112 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4apu#000001113 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001114 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', line2process4source-read-by-fetch2programsource4apu#000001115 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001116 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', line2process4source-read-by-fetch2programsource4apu#000001117 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001118 'debug4xi': True} line2process4source-read-by-fetch2programsource4apu#000001119 line2process4source-read-by-fetch2programsource4apu#000001120 xml_trace_sense4xi(t2xi, context2sense) line2process4source-read-by-fetch2programsource4apu#000001121 line2process4source-read-by-fetch2programsource4apu#000001122 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001123 # REASON line2process4source-read-by-fetch2programsource4apu#000001124 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001125 line2process4source-read-by-fetch2programsource4apu#000001126 context2reason = { line2process4source-read-by-fetch2programsource4apu#000001127 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4apu#000001128 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', line2process4source-read-by-fetch2programsource4apu#000001129 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', line2process4source-read-by-fetch2programsource4apu#000001130 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4apu#000001131 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001132 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001133 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', line2process4source-read-by-fetch2programsource4apu#000001134 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001135 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', line2process4source-read-by-fetch2programsource4apu#000001136 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001137 'debug4xi': True} line2process4source-read-by-fetch2programsource4apu#000001138 line2process4source-read-by-fetch2programsource4apu#000001139 xml_trace_reason4xi(t2xi, context2reason) line2process4source-read-by-fetch2programsource4apu#000001140 line2process4source-read-by-fetch2programsource4apu#000001141 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001142 # ACE line2process4source-read-by-fetch2programsource4apu#000001143 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001144 line2process4source-read-by-fetch2programsource4apu#000001145 context2ace = { line2process4source-read-by-fetch2programsource4apu#000001146 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4apu#000001147 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', line2process4source-read-by-fetch2programsource4apu#000001148 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', line2process4source-read-by-fetch2programsource4apu#000001149 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4apu#000001150 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001151 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', line2process4source-read-by-fetch2programsource4apu#000001152 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001153 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', line2process4source-read-by-fetch2programsource4apu#000001154 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', line2process4source-read-by-fetch2programsource4apu#000001155 'debug4xi': True} line2process4source-read-by-fetch2programsource4apu#000001156 line2process4source-read-by-fetch2programsource4apu#000001157 xml_trace_ace4xi(t2xi, context2ace) line2process4source-read-by-fetch2programsource4apu#000001158 line2process4source-read-by-fetch2programsource4apu#000001159 line2process4source-read-by-fetch2programsource4apu#000001160 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001161 # end of print2trace4xi line2process4source-read-by-fetch2programsource4apu#000001162 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001163 #/function4xi line2process4source-read-by-fetch2programsource4apu#000001164 line2process4source-read-by-fetch2programsource4apu#000001165 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001166 #function4xi function = "apu2sampler4xi5test" usage = " line2process4source-read-by-fetch2programsource4apu#000001167 # tests sampler4apu line2process4source-read-by-fetch2programsource4apu#000001168 #" line2process4source-read-by-fetch2programsource4apu#000001169 #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ line2process4source-read-by-fetch2programsource4apu#000001170 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001171 def apu2sampler4xi5test(): line2process4source-read-by-fetch2programsource4apu#000001172 global t2xi line2process4source-read-by-fetch2programsource4apu#000001173 global trace_object_count line2process4source-read-by-fetch2programsource4apu#000001174 line2process4source-read-by-fetch2programsource4apu#000001175 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001176 # INITIALIZE TRACE line2process4source-read-by-fetch2programsource4apu#000001177 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001178 t2xi = Print4Xi() line2process4source-read-by-fetch2programsource4apu#000001179 set2trace4xi() # trace all classes and functions in the system line2process4source-read-by-fetch2programsource4apu#000001180 deny2trace4xi() # deny trace for all classes and functions in the system line2process4source-read-by-fetch2programsource4apu#000001181 tailor2trace4xi() # tailor trace for this test line2process4source-read-by-fetch2programsource4apu#000001182 try: line2process4source-read-by-fetch2programsource4apu#000001183 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001184 # START TESTING line2process4source-read-by-fetch2programsource4apu#000001185 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001186 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001187 print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001188 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001189 # line2process4source-read-by-fetch2programsource4apu#000001190 line2process4source-read-by-fetch2programsource4apu#000001191 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001192 # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION line2process4source-read-by-fetch2programsource4apu#000001193 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001194 print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001195 try: line2process4source-read-by-fetch2programsource4apu#000001196 response4create2sampler = create2sampler4apu() line2process4source-read-by-fetch2programsource4apu#000001197 keys2response = response4create2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001198 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001199 print(key2response, ' : ', response4create2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001200 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- line2process4source-read-by-fetch2programsource4apu#000001201 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001202 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... line2process4source-read-by-fetch2programsource4apu#000001203 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001204 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4apu#000001205 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4apu#000001206 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001207 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001208 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4apu#000001209 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4apu#000001210 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001211 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 line2process4source-read-by-fetch2programsource4apu#000001212 # NACK2RETURN : line2process4source-read-by-fetch2programsource4apu#000001213 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001214 # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) line2process4source-read-by-fetch2programsource4apu#000001215 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001216 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 line2process4source-read-by-fetch2programsource4apu#000001217 except: line2process4source-read-by-fetch2programsource4apu#000001218 print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001219 line2process4source-read-by-fetch2programsource4apu#000001220 line2process4source-read-by-fetch2programsource4apu#000001221 line2process4source-read-by-fetch2programsource4apu#000001222 line2process4source-read-by-fetch2programsource4apu#000001223 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001224 # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION line2process4source-read-by-fetch2programsource4apu#000001225 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001226 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001227 print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001228 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001229 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001230 task4getinfo2sampler ['NORMALIZATION'] = 0 line2process4source-read-by-fetch2programsource4apu#000001231 task4getinfo2sampler ['ADDRESSINGMODE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001232 task4getinfo2sampler ['FILTERINGMODE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001233 try: line2process4source-read-by-fetch2programsource4apu#000001234 response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) line2process4source-read-by-fetch2programsource4apu#000001235 print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001236 keys2response = response4samplerinfo2apu.keys() line2process4source-read-by-fetch2programsource4apu#000001237 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001238 print(key2response, ' : ', response4samplerinfo2apu[key2response]) line2process4source-read-by-fetch2programsource4apu#000001239 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001240 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001241 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001242 line2process4source-read-by-fetch2programsource4apu#000001243 except: line2process4source-read-by-fetch2programsource4apu#000001244 print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001245 line2process4source-read-by-fetch2programsource4apu#000001246 line2process4source-read-by-fetch2programsource4apu#000001247 line2process4source-read-by-fetch2programsource4apu#000001248 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001249 print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001250 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001251 try: line2process4source-read-by-fetch2programsource4apu#000001252 response4getinfo2sampler = get2samplerinfo4apu() line2process4source-read-by-fetch2programsource4apu#000001253 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001254 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001255 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001256 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- line2process4source-read-by-fetch2programsource4apu#000001257 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001258 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001259 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001260 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001261 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': line2process4source-read-by-fetch2programsource4apu#000001262 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001263 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001264 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', line2process4source-read-by-fetch2programsource4apu#000001265 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001266 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001267 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001268 # NACK2RETURN : line2process4source-read-by-fetch2programsource4apu#000001269 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001270 # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) line2process4source-read-by-fetch2programsource4apu#000001271 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001272 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 line2process4source-read-by-fetch2programsource4apu#000001273 except: line2process4source-read-by-fetch2programsource4apu#000001274 print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001275 line2process4source-read-by-fetch2programsource4apu#000001276 line2process4source-read-by-fetch2programsource4apu#000001277 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001278 # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES line2process4source-read-by-fetch2programsource4apu#000001279 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001280 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001281 print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001282 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001283 line2process4source-read-by-fetch2programsource4apu#000001284 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001285 # (1) GET PLATFORM IDs TO SET CONTEXT line2process4source-read-by-fetch2programsource4apu#000001286 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001287 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001288 print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001289 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001290 platform2xi = {} line2process4source-read-by-fetch2programsource4apu#000001291 try: line2process4source-read-by-fetch2programsource4apu#000001292 platform2xi = get2platformids4xi() line2process4source-read-by-fetch2programsource4apu#000001293 print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) line2process4source-read-by-fetch2programsource4apu#000001294 # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001295 line2process4source-read-by-fetch2programsource4apu#000001296 except: line2process4source-read-by-fetch2programsource4apu#000001297 print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001298 line2process4source-read-by-fetch2programsource4apu#000001299 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001300 # (2) INITIALIZE DEVICE line2process4source-read-by-fetch2programsource4apu#000001301 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001302 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001303 print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001304 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001305 try: line2process4source-read-by-fetch2programsource4apu#000001306 device2apu = init2apu4xi() line2process4source-read-by-fetch2programsource4apu#000001307 print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) line2process4source-read-by-fetch2programsource4apu#000001308 # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4apu#000001309 line2process4source-read-by-fetch2programsource4apu#000001310 except: line2process4source-read-by-fetch2programsource4apu#000001311 print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001312 line2process4source-read-by-fetch2programsource4apu#000001313 line2process4source-read-by-fetch2programsource4apu#000001314 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001315 # (3) CREATE CONTEXT line2process4source-read-by-fetch2programsource4apu#000001316 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001317 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001318 print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001319 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001320 try: line2process4source-read-by-fetch2programsource4apu#000001321 context2apu = create2context4apu() line2process4source-read-by-fetch2programsource4apu#000001322 print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) line2process4source-read-by-fetch2programsource4apu#000001323 # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4apu#000001324 line2process4source-read-by-fetch2programsource4apu#000001325 except: line2process4source-read-by-fetch2programsource4apu#000001326 print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001327 line2process4source-read-by-fetch2programsource4apu#000001328 line2process4source-read-by-fetch2programsource4apu#000001329 line2process4source-read-by-fetch2programsource4apu#000001330 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001331 # (4) INITIALIZE TASK DICTIONARY line2process4source-read-by-fetch2programsource4apu#000001332 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001333 task4set2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001334 line2process4source-read-by-fetch2programsource4apu#000001335 line2process4source-read-by-fetch2programsource4apu#000001336 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001337 # (5) DEFINE CONTEXT - REQUIRED line2process4source-read-by-fetch2programsource4apu#000001338 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001339 task4set2sampler ['CONTEXT'] = context2apu line2process4source-read-by-fetch2programsource4apu#000001340 line2process4source-read-by-fetch2programsource4apu#000001341 line2process4source-read-by-fetch2programsource4apu#000001342 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001343 # (6) DEFINE DEVICE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001344 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001345 task4set2sampler ['DEVICE'] = device2apu line2process4source-read-by-fetch2programsource4apu#000001346 line2process4source-read-by-fetch2programsource4apu#000001347 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001348 # (7) DEFINE PROPERTIES - NONE line2process4source-read-by-fetch2programsource4apu#000001349 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001350 task4set2sampler ['PROPERTIES'] = None line2process4source-read-by-fetch2programsource4apu#000001351 line2process4source-read-by-fetch2programsource4apu#000001352 line2process4source-read-by-fetch2programsource4apu#000001353 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001354 # (8) DEFINE ERROR CODE - REQUIRED line2process4source-read-by-fetch2programsource4apu#000001355 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001356 task4set2sampler ['CODE2ERROR'] = 0 line2process4source-read-by-fetch2programsource4apu#000001357 line2process4source-read-by-fetch2programsource4apu#000001358 line2process4source-read-by-fetch2programsource4apu#000001359 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001360 # (9) SET QUEUE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001361 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001362 task4set2sampler ['QUEUE'] = None line2process4source-read-by-fetch2programsource4apu#000001363 print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001364 try: line2process4source-read-by-fetch2programsource4apu#000001365 task4set2sampler ['QUEUE'] = Queue4Xi() line2process4source-read-by-fetch2programsource4apu#000001366 print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) line2process4source-read-by-fetch2programsource4apu#000001367 # queue4xi.Queue4Xi object at 0x0000000003B050F0 line2process4source-read-by-fetch2programsource4apu#000001368 line2process4source-read-by-fetch2programsource4apu#000001369 except: line2process4source-read-by-fetch2programsource4apu#000001370 print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001371 line2process4source-read-by-fetch2programsource4apu#000001372 line2process4source-read-by-fetch2programsource4apu#000001373 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001374 # (10) SET PIPE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001375 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001376 task4set2sampler ['PIPE'] = None line2process4source-read-by-fetch2programsource4apu#000001377 print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001378 try: line2process4source-read-by-fetch2programsource4apu#000001379 task4set2sampler ['PIPE'] = Pipe4Xi() line2process4source-read-by-fetch2programsource4apu#000001380 print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) line2process4source-read-by-fetch2programsource4apu#000001381 # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) line2process4source-read-by-fetch2programsource4apu#000001382 line2process4source-read-by-fetch2programsource4apu#000001383 except: line2process4source-read-by-fetch2programsource4apu#000001384 print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001385 line2process4source-read-by-fetch2programsource4apu#000001386 line2process4source-read-by-fetch2programsource4apu#000001387 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001388 # (11) SET REST line2process4source-read-by-fetch2programsource4apu#000001389 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001390 task4set2sampler ['COMMANDQUEUE'] = None line2process4source-read-by-fetch2programsource4apu#000001391 print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001392 try: line2process4source-read-by-fetch2programsource4apu#000001393 task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() line2process4source-read-by-fetch2programsource4apu#000001394 print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) line2process4source-read-by-fetch2programsource4apu#000001395 # line2process4source-read-by-fetch2programsource4apu#000001396 task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' line2process4source-read-by-fetch2programsource4apu#000001397 print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) line2process4source-read-by-fetch2programsource4apu#000001398 # line2process4source-read-by-fetch2programsource4apu#000001399 task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' line2process4source-read-by-fetch2programsource4apu#000001400 print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) line2process4source-read-by-fetch2programsource4apu#000001401 # line2process4source-read-by-fetch2programsource4apu#000001402 task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' line2process4source-read-by-fetch2programsource4apu#000001403 print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) line2process4source-read-by-fetch2programsource4apu#000001404 # line2process4source-read-by-fetch2programsource4apu#000001405 line2process4source-read-by-fetch2programsource4apu#000001406 except: line2process4source-read-by-fetch2programsource4apu#000001407 print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001408 line2process4source-read-by-fetch2programsource4apu#000001409 line2process4source-read-by-fetch2programsource4apu#000001410 line2process4source-read-by-fetch2programsource4apu#000001411 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001412 # (11) SET SAMPLER - FINALLY! line2process4source-read-by-fetch2programsource4apu#000001413 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001414 response4set2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001415 print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001416 try: line2process4source-read-by-fetch2programsource4apu#000001417 response4set2sampler = set2sampler4apu(task4set2sampler) line2process4source-read-by-fetch2programsource4apu#000001418 line2process4source-read-by-fetch2programsource4apu#000001419 keys2response = response4set2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001420 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001421 print(key2response, ' : ', response4set2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001422 # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- line2process4source-read-by-fetch2programsource4apu#000001423 # ADDRESSINGMODE : CL_ADDRESS_REPEAT line2process4source-read-by-fetch2programsource4apu#000001424 # BUFFER : {'CODE2ERROR': 0 ... line2process4source-read-by-fetch2programsource4apu#000001425 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001426 # COMMANDQUEUE : {'CODE2ERROR': 0, ... line2process4source-read-by-fetch2programsource4apu#000001427 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4apu#000001428 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001429 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001430 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4apu#000001431 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4apu#000001432 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001433 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 line2process4source-read-by-fetch2programsource4apu#000001434 # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- line2process4source-read-by-fetch2programsource4apu#000001435 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001436 # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) line2process4source-read-by-fetch2programsource4apu#000001437 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001438 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 line2process4source-read-by-fetch2programsource4apu#000001439 line2process4source-read-by-fetch2programsource4apu#000001440 line2process4source-read-by-fetch2programsource4apu#000001441 except: line2process4source-read-by-fetch2programsource4apu#000001442 print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001443 line2process4source-read-by-fetch2programsource4apu#000001444 line2process4source-read-by-fetch2programsource4apu#000001445 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001446 # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 line2process4source-read-by-fetch2programsource4apu#000001447 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001448 line2process4source-read-by-fetch2programsource4apu#000001449 task4release2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001450 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001451 response4release2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001452 line2process4source-read-by-fetch2programsource4apu#000001453 print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001454 # line2process4source-read-by-fetch2programsource4apu#000001455 try: line2process4source-read-by-fetch2programsource4apu#000001456 response4release2sampler = release2sampler4apu(task4release2sampler) line2process4source-read-by-fetch2programsource4apu#000001457 line2process4source-read-by-fetch2programsource4apu#000001458 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001459 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001460 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001461 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4apu#000001462 line2process4source-read-by-fetch2programsource4apu#000001463 except: line2process4source-read-by-fetch2programsource4apu#000001464 print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001465 line2process4source-read-by-fetch2programsource4apu#000001466 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001467 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001468 line2process4source-read-by-fetch2programsource4apu#000001469 print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001470 # line2process4source-read-by-fetch2programsource4apu#000001471 try: line2process4source-read-by-fetch2programsource4apu#000001472 response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4apu#000001473 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001474 line2process4source-read-by-fetch2programsource4apu#000001475 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001476 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001477 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4apu#000001478 line2process4source-read-by-fetch2programsource4apu#000001479 except: line2process4source-read-by-fetch2programsource4apu#000001480 print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001481 line2process4source-read-by-fetch2programsource4apu#000001482 line2process4source-read-by-fetch2programsource4apu#000001483 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001484 # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 line2process4source-read-by-fetch2programsource4apu#000001485 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001486 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001487 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001488 response4retain2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001489 print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001490 try: line2process4source-read-by-fetch2programsource4apu#000001491 response4retain2sampler = retain2sampler4apu(task4retain2sampler) line2process4source-read-by-fetch2programsource4apu#000001492 line2process4source-read-by-fetch2programsource4apu#000001493 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001494 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001495 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001496 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001497 line2process4source-read-by-fetch2programsource4apu#000001498 except: line2process4source-read-by-fetch2programsource4apu#000001499 print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001500 line2process4source-read-by-fetch2programsource4apu#000001501 line2process4source-read-by-fetch2programsource4apu#000001502 line2process4source-read-by-fetch2programsource4apu#000001503 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001504 # (14) SAMPLER CALLBACK line2process4source-read-by-fetch2programsource4apu#000001505 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001506 line2process4source-read-by-fetch2programsource4apu#000001507 print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001508 try: line2process4source-read-by-fetch2programsource4apu#000001509 response4setcallback2sampler = set2samplercallback4apu() line2process4source-read-by-fetch2programsource4apu#000001510 print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) line2process4source-read-by-fetch2programsource4apu#000001511 # function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001512 except: line2process4source-read-by-fetch2programsource4apu#000001513 print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001514 line2process4source-read-by-fetch2programsource4apu#000001515 line2process4source-read-by-fetch2programsource4apu#000001516 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001517 # PHASE I: TRACE FUNCTION TESTS line2process4source-read-by-fetch2programsource4apu#000001518 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001519 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001520 print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001521 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001522 trace2apu = None line2process4source-read-by-fetch2programsource4apu#000001523 try: line2process4source-read-by-fetch2programsource4apu#000001524 trace2apu = trace2sampler4apu() line2process4source-read-by-fetch2programsource4apu#000001525 print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) line2process4source-read-by-fetch2programsource4apu#000001526 # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {} line2process4source-read-by-fetch2programsource4apu#000001527 line2process4source-read-by-fetch2programsource4apu#000001528 except: line2process4source-read-by-fetch2programsource4apu#000001529 print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) line2process4source-read-by-fetch2programsource4apu#000001530 line2process4source-read-by-fetch2programsource4apu#000001531 line2process4source-read-by-fetch2programsource4apu#000001532 line2process4source-read-by-fetch2programsource4apu#000001533 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001534 # PHASE II: CLASS TESTS line2process4source-read-by-fetch2programsource4apu#000001535 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001536 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001537 print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001538 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001539 # line2process4source-read-by-fetch2programsource4apu#000001540 try: line2process4source-read-by-fetch2programsource4apu#000001541 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001542 # CREATE WITH OBJECT line2process4source-read-by-fetch2programsource4apu#000001543 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001544 samplerobject2apu = APU2Sampler4Xi() line2process4source-read-by-fetch2programsource4apu#000001545 print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) line2process4source-read-by-fetch2programsource4apu#000001546 # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 line2process4source-read-by-fetch2programsource4apu#000001547 line2process4source-read-by-fetch2programsource4apu#000001548 except: line2process4source-read-by-fetch2programsource4apu#000001549 print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') line2process4source-read-by-fetch2programsource4apu#000001550 line2process4source-read-by-fetch2programsource4apu#000001551 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001552 # PHASE II: CLASS TESTS - GET METHOD line2process4source-read-by-fetch2programsource4apu#000001553 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001554 print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001555 try: line2process4source-read-by-fetch2programsource4apu#000001556 response4get2samplerinfo = samplerobject2apu.get2samplerinfo() line2process4source-read-by-fetch2programsource4apu#000001557 line2process4source-read-by-fetch2programsource4apu#000001558 keys2response = response4get2samplerinfo.keys() line2process4source-read-by-fetch2programsource4apu#000001559 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001560 print(key2response, ' : ', response4get2samplerinfo[key2response]) line2process4source-read-by-fetch2programsource4apu#000001561 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- line2process4source-read-by-fetch2programsource4apu#000001562 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001563 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4apu#000001564 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001565 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001566 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001567 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001568 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001569 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' line2process4source-read-by-fetch2programsource4apu#000001570 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed line2process4source-read-by-fetch2programsource4apu#000001571 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001572 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001573 # NACK2RETURN : line2process4source-read-by-fetch2programsource4apu#000001574 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001575 # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) line2process4source-read-by-fetch2programsource4apu#000001576 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001577 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 line2process4source-read-by-fetch2programsource4apu#000001578 # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time line2process4source-read-by-fetch2programsource4apu#000001579 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001580 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001581 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001582 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001583 line2process4source-read-by-fetch2programsource4apu#000001584 except: line2process4source-read-by-fetch2programsource4apu#000001585 print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001586 line2process4source-read-by-fetch2programsource4apu#000001587 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001588 task4getinfo2sampler ['NORMALIZATION'] = 0 line2process4source-read-by-fetch2programsource4apu#000001589 task4getinfo2sampler ['ADDRESSINGMODE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001590 task4getinfo2sampler ['FILTERINGMODE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001591 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001592 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001593 print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001594 # line2process4source-read-by-fetch2programsource4apu#000001595 try: line2process4source-read-by-fetch2programsource4apu#000001596 response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) line2process4source-read-by-fetch2programsource4apu#000001597 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001598 line2process4source-read-by-fetch2programsource4apu#000001599 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001600 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001601 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001602 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001603 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001604 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001605 line2process4source-read-by-fetch2programsource4apu#000001606 except: line2process4source-read-by-fetch2programsource4apu#000001607 print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001608 line2process4source-read-by-fetch2programsource4apu#000001609 line2process4source-read-by-fetch2programsource4apu#000001610 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001611 # PHASE II: CLASS TESTS - SET METHOD line2process4source-read-by-fetch2programsource4apu#000001612 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001613 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001614 print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001615 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001616 # line2process4source-read-by-fetch2programsource4apu#000001617 line2process4source-read-by-fetch2programsource4apu#000001618 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001619 # (4) INITIALIZE TASK DICTIONARY line2process4source-read-by-fetch2programsource4apu#000001620 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001621 task4set2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001622 line2process4source-read-by-fetch2programsource4apu#000001623 line2process4source-read-by-fetch2programsource4apu#000001624 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001625 # (5) DEFINE CONTEXT - REQUIRED line2process4source-read-by-fetch2programsource4apu#000001626 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001627 line2process4source-read-by-fetch2programsource4apu#000001628 task4set2sampler ['CONTEXT'] = context2apu line2process4source-read-by-fetch2programsource4apu#000001629 line2process4source-read-by-fetch2programsource4apu#000001630 line2process4source-read-by-fetch2programsource4apu#000001631 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001632 # (6) DEFINE DEVICE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001633 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001634 line2process4source-read-by-fetch2programsource4apu#000001635 task4set2sampler ['DEVICE'] = device2apu line2process4source-read-by-fetch2programsource4apu#000001636 line2process4source-read-by-fetch2programsource4apu#000001637 line2process4source-read-by-fetch2programsource4apu#000001638 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001639 # (7) DEFINE ERROR CODE - REQUIRED line2process4source-read-by-fetch2programsource4apu#000001640 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001641 task4set2sampler ['CODE2ERROR'] = 0 line2process4source-read-by-fetch2programsource4apu#000001642 line2process4source-read-by-fetch2programsource4apu#000001643 line2process4source-read-by-fetch2programsource4apu#000001644 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001645 # (8) QUEUE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001646 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001647 print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001648 task4set2sampler ['QUEUE'] = None line2process4source-read-by-fetch2programsource4apu#000001649 try: line2process4source-read-by-fetch2programsource4apu#000001650 task4set2sampler ['QUEUE'] = Queue4Xi() line2process4source-read-by-fetch2programsource4apu#000001651 print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) line2process4source-read-by-fetch2programsource4apu#000001652 # queue4xi.Queue4Xi object at 0x0000000003B02B00 line2process4source-read-by-fetch2programsource4apu#000001653 line2process4source-read-by-fetch2programsource4apu#000001654 except: line2process4source-read-by-fetch2programsource4apu#000001655 print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001656 line2process4source-read-by-fetch2programsource4apu#000001657 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001658 # (9) PIPE line2process4source-read-by-fetch2programsource4apu#000001659 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001660 print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001661 task4set2sampler ['PIPE'] = None line2process4source-read-by-fetch2programsource4apu#000001662 try: line2process4source-read-by-fetch2programsource4apu#000001663 task4set2sampler ['PIPE'] = Pipe4Xi() line2process4source-read-by-fetch2programsource4apu#000001664 print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) line2process4source-read-by-fetch2programsource4apu#000001665 # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) line2process4source-read-by-fetch2programsource4apu#000001666 line2process4source-read-by-fetch2programsource4apu#000001667 except: line2process4source-read-by-fetch2programsource4apu#000001668 print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001669 line2process4source-read-by-fetch2programsource4apu#000001670 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001671 # (10) SET COMMAND QUEUE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001672 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001673 task4set2sampler ['COMMANDQUEUE'] = None line2process4source-read-by-fetch2programsource4apu#000001674 print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001675 try: line2process4source-read-by-fetch2programsource4apu#000001676 task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() line2process4source-read-by-fetch2programsource4apu#000001677 print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) line2process4source-read-by-fetch2programsource4apu#000001678 # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001679 line2process4source-read-by-fetch2programsource4apu#000001680 line2process4source-read-by-fetch2programsource4apu#000001681 except: line2process4source-read-by-fetch2programsource4apu#000001682 print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001683 line2process4source-read-by-fetch2programsource4apu#000001684 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001685 # (11) SET ADDRESSINGMODE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001686 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001687 line2process4source-read-by-fetch2programsource4apu#000001688 print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001689 try: line2process4source-read-by-fetch2programsource4apu#000001690 task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' line2process4source-read-by-fetch2programsource4apu#000001691 print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) line2process4source-read-by-fetch2programsource4apu#000001692 # CL_ADDRESS_CLAMP_TO_EDGE line2process4source-read-by-fetch2programsource4apu#000001693 line2process4source-read-by-fetch2programsource4apu#000001694 line2process4source-read-by-fetch2programsource4apu#000001695 except: line2process4source-read-by-fetch2programsource4apu#000001696 print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001697 line2process4source-read-by-fetch2programsource4apu#000001698 line2process4source-read-by-fetch2programsource4apu#000001699 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001700 # (12) SET FILTERINGMODE - EXTRA line2process4source-read-by-fetch2programsource4apu#000001701 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001702 line2process4source-read-by-fetch2programsource4apu#000001703 print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001704 try: line2process4source-read-by-fetch2programsource4apu#000001705 task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' line2process4source-read-by-fetch2programsource4apu#000001706 print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) line2process4source-read-by-fetch2programsource4apu#000001707 # CL_FILTER_LINEAR line2process4source-read-by-fetch2programsource4apu#000001708 line2process4source-read-by-fetch2programsource4apu#000001709 line2process4source-read-by-fetch2programsource4apu#000001710 except: line2process4source-read-by-fetch2programsource4apu#000001711 print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001712 line2process4source-read-by-fetch2programsource4apu#000001713 line2process4source-read-by-fetch2programsource4apu#000001714 line2process4source-read-by-fetch2programsource4apu#000001715 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001716 # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD line2process4source-read-by-fetch2programsource4apu#000001717 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001718 print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001719 try: line2process4source-read-by-fetch2programsource4apu#000001720 response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) line2process4source-read-by-fetch2programsource4apu#000001721 keys2response = response4set2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001722 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001723 print(key2response, ' : ', response4set2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001724 # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- line2process4source-read-by-fetch2programsource4apu#000001725 # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE line2process4source-read-by-fetch2programsource4apu#000001726 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001727 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001728 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001729 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001730 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001731 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001732 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 line2process4source-read-by-fetch2programsource4apu#000001733 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001734 # FILTERINGMODE : CL_FILTER_LINEAR line2process4source-read-by-fetch2programsource4apu#000001735 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001736 # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- line2process4source-read-by-fetch2programsource4apu#000001737 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001738 # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) line2process4source-read-by-fetch2programsource4apu#000001739 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001740 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 line2process4source-read-by-fetch2programsource4apu#000001741 line2process4source-read-by-fetch2programsource4apu#000001742 except: line2process4source-read-by-fetch2programsource4apu#000001743 print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001744 line2process4source-read-by-fetch2programsource4apu#000001745 line2process4source-read-by-fetch2programsource4apu#000001746 line2process4source-read-by-fetch2programsource4apu#000001747 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001748 # PHASE II: CLASS TESTS - RELEASE SAMPLER line2process4source-read-by-fetch2programsource4apu#000001749 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001750 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001751 print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001752 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001753 # line2process4source-read-by-fetch2programsource4apu#000001754 task4release2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001755 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001756 try: line2process4source-read-by-fetch2programsource4apu#000001757 response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) line2process4source-read-by-fetch2programsource4apu#000001758 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001759 line2process4source-read-by-fetch2programsource4apu#000001760 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001761 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001762 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4apu#000001763 line2process4source-read-by-fetch2programsource4apu#000001764 except: line2process4source-read-by-fetch2programsource4apu#000001765 print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001766 line2process4source-read-by-fetch2programsource4apu#000001767 line2process4source-read-by-fetch2programsource4apu#000001768 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001769 # PHASE II: CLASS TESTS - RETAIN SAMPLER line2process4source-read-by-fetch2programsource4apu#000001770 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001771 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001772 print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001773 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001774 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001775 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001776 try: line2process4source-read-by-fetch2programsource4apu#000001777 response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) line2process4source-read-by-fetch2programsource4apu#000001778 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001779 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001780 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001781 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001782 line2process4source-read-by-fetch2programsource4apu#000001783 except: line2process4source-read-by-fetch2programsource4apu#000001784 print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001785 line2process4source-read-by-fetch2programsource4apu#000001786 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001787 # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD line2process4source-read-by-fetch2programsource4apu#000001788 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001789 print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001790 # line2process4source-read-by-fetch2programsource4apu#000001791 try: line2process4source-read-by-fetch2programsource4apu#000001792 xi2apu = APU2Sampler4Xi() line2process4source-read-by-fetch2programsource4apu#000001793 response4create2sampler = xi2apu.create2sampler() line2process4source-read-by-fetch2programsource4apu#000001794 keys2response = response4create2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001795 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001796 print(key2response, ' : ', response4create2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001797 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- line2process4source-read-by-fetch2programsource4apu#000001798 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4apu#000001799 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001800 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4apu#000001801 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4apu#000001802 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001803 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001804 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed line2process4source-read-by-fetch2programsource4apu#000001805 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' line2process4source-read-by-fetch2programsource4apu#000001806 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4apu#000001807 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4apu#000001808 # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001809 # NACK2RETURN : line2process4source-read-by-fetch2programsource4apu#000001810 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4apu#000001811 # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) line2process4source-read-by-fetch2programsource4apu#000001812 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4apu#000001813 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 line2process4source-read-by-fetch2programsource4apu#000001814 line2process4source-read-by-fetch2programsource4apu#000001815 except: line2process4source-read-by-fetch2programsource4apu#000001816 print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001817 line2process4source-read-by-fetch2programsource4apu#000001818 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001819 # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD line2process4source-read-by-fetch2programsource4apu#000001820 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001821 print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) line2process4source-read-by-fetch2programsource4apu#000001822 # line2process4source-read-by-fetch2programsource4apu#000001823 try: line2process4source-read-by-fetch2programsource4apu#000001824 line2process4source-read-by-fetch2programsource4apu#000001825 callback2apu = xi2apu.set2samplercallback() line2process4source-read-by-fetch2programsource4apu#000001826 print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) line2process4source-read-by-fetch2programsource4apu#000001827 # function trace2sampler4apu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4apu#000001828 line2process4source-read-by-fetch2programsource4apu#000001829 except: line2process4source-read-by-fetch2programsource4apu#000001830 print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001831 line2process4source-read-by-fetch2programsource4apu#000001832 line2process4source-read-by-fetch2programsource4apu#000001833 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001834 # PHASE II: CLASS TESTS - TRACE SAMPLERS line2process4source-read-by-fetch2programsource4apu#000001835 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001836 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001837 print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001838 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001839 # line2process4source-read-by-fetch2programsource4apu#000001840 line2process4source-read-by-fetch2programsource4apu#000001841 trace2apu = None line2process4source-read-by-fetch2programsource4apu#000001842 try: line2process4source-read-by-fetch2programsource4apu#000001843 trace2apu = xi2apu.trace2sampler() line2process4source-read-by-fetch2programsource4apu#000001844 line2process4source-read-by-fetch2programsource4apu#000001845 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001846 print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) line2process4source-read-by-fetch2programsource4apu#000001847 # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {} line2process4source-read-by-fetch2programsource4apu#000001848 line2process4source-read-by-fetch2programsource4apu#000001849 line2process4source-read-by-fetch2programsource4apu#000001850 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001851 except: line2process4source-read-by-fetch2programsource4apu#000001852 print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) line2process4source-read-by-fetch2programsource4apu#000001853 line2process4source-read-by-fetch2programsource4apu#000001854 line2process4source-read-by-fetch2programsource4apu#000001855 line2process4source-read-by-fetch2programsource4apu#000001856 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001857 # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 line2process4source-read-by-fetch2programsource4apu#000001858 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001859 task4release2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001860 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001861 response4release2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001862 line2process4source-read-by-fetch2programsource4apu#000001863 print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001864 # line2process4source-read-by-fetch2programsource4apu#000001865 try: line2process4source-read-by-fetch2programsource4apu#000001866 response4release2sampler = xi2apu.release2sampler(task4release2sampler) line2process4source-read-by-fetch2programsource4apu#000001867 line2process4source-read-by-fetch2programsource4apu#000001868 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001869 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001870 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001871 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4apu#000001872 except: line2process4source-read-by-fetch2programsource4apu#000001873 print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001874 line2process4source-read-by-fetch2programsource4apu#000001875 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001876 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001877 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001878 print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001879 # line2process4source-read-by-fetch2programsource4apu#000001880 try: line2process4source-read-by-fetch2programsource4apu#000001881 response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4apu#000001882 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001883 line2process4source-read-by-fetch2programsource4apu#000001884 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001885 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001886 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4apu#000001887 except: line2process4source-read-by-fetch2programsource4apu#000001888 print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001889 line2process4source-read-by-fetch2programsource4apu#000001890 line2process4source-read-by-fetch2programsource4apu#000001891 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001892 # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 line2process4source-read-by-fetch2programsource4apu#000001893 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001894 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001895 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4apu#000001896 response4retain2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001897 print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001898 try: line2process4source-read-by-fetch2programsource4apu#000001899 response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) line2process4source-read-by-fetch2programsource4apu#000001900 line2process4source-read-by-fetch2programsource4apu#000001901 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001902 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001903 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001904 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001905 except: line2process4source-read-by-fetch2programsource4apu#000001906 print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001907 line2process4source-read-by-fetch2programsource4apu#000001908 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001909 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4apu#000001910 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4apu#000001911 print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001912 # line2process4source-read-by-fetch2programsource4apu#000001913 try: line2process4source-read-by-fetch2programsource4apu#000001914 response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4apu#000001915 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4apu#000001916 line2process4source-read-by-fetch2programsource4apu#000001917 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4apu#000001918 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4apu#000001919 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4apu#000001920 line2process4source-read-by-fetch2programsource4apu#000001921 except: line2process4source-read-by-fetch2programsource4apu#000001922 print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001923 line2process4source-read-by-fetch2programsource4apu#000001924 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001925 # PHASE II: CLASS TESTS - SENSE SAMPLER line2process4source-read-by-fetch2programsource4apu#000001926 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001927 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001928 print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001929 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001930 line2process4source-read-by-fetch2programsource4apu#000001931 try: line2process4source-read-by-fetch2programsource4apu#000001932 print(xi2apu.sense()) line2process4source-read-by-fetch2programsource4apu#000001933 line2process4source-read-by-fetch2programsource4apu#000001934 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001935 print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001936 # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} line2process4source-read-by-fetch2programsource4apu#000001937 line2process4source-read-by-fetch2programsource4apu#000001938 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001939 except: line2process4source-read-by-fetch2programsource4apu#000001940 print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001941 line2process4source-read-by-fetch2programsource4apu#000001942 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001943 # PHASE II: CLASS TESTS - REASON SAMPLER line2process4source-read-by-fetch2programsource4apu#000001944 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001945 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001946 print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001947 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001948 line2process4source-read-by-fetch2programsource4apu#000001949 try: line2process4source-read-by-fetch2programsource4apu#000001950 print(xi2apu.reason()) line2process4source-read-by-fetch2programsource4apu#000001951 line2process4source-read-by-fetch2programsource4apu#000001952 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001953 print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001954 # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} line2process4source-read-by-fetch2programsource4apu#000001955 line2process4source-read-by-fetch2programsource4apu#000001956 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001957 except: line2process4source-read-by-fetch2programsource4apu#000001958 print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001959 line2process4source-read-by-fetch2programsource4apu#000001960 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001961 # PHASE II: CLASS TESTS - ACE SAMPLER line2process4source-read-by-fetch2programsource4apu#000001962 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001963 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001964 print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001965 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001966 line2process4source-read-by-fetch2programsource4apu#000001967 try: line2process4source-read-by-fetch2programsource4apu#000001968 print(xi2apu.ace()) line2process4source-read-by-fetch2programsource4apu#000001969 line2process4source-read-by-fetch2programsource4apu#000001970 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001971 print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001972 # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} line2process4source-read-by-fetch2programsource4apu#000001973 line2process4source-read-by-fetch2programsource4apu#000001974 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001975 except: line2process4source-read-by-fetch2programsource4apu#000001976 print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001977 line2process4source-read-by-fetch2programsource4apu#000001978 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001979 # DONE - ALL TESTS line2process4source-read-by-fetch2programsource4apu#000001980 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001981 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001982 print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001983 # line2process4source-read-by-fetch2programsource4apu#000001984 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000001985 except: line2process4source-read-by-fetch2programsource4apu#000001986 print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) line2process4source-read-by-fetch2programsource4apu#000001987 finally: line2process4source-read-by-fetch2programsource4apu#000001988 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001989 # Print Trace line2process4source-read-by-fetch2programsource4apu#000001990 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001991 print2trace4xi(t2xi) line2process4source-read-by-fetch2programsource4apu#000001992 line2process4source-read-by-fetch2programsource4apu#000001993 line2process4source-read-by-fetch2programsource4apu#000001994 #/function4xi line2process4source-read-by-fetch2programsource4apu#000001995 line2process4source-read-by-fetch2programsource4apu#000001996 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000001997 #function4xi function = "main" usage = " line2process4source-read-by-fetch2programsource4apu#000001998 # main function for apu2sampler4xi5test line2process4source-read-by-fetch2programsource4apu#000001999 #" line2process4source-read-by-fetch2programsource4apu#000002000 #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ line2process4source-read-by-fetch2programsource4apu#000002001 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002002 def main(): line2process4source-read-by-fetch2programsource4apu#000002003 line2process4source-read-by-fetch2programsource4apu#000002004 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000002005 print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) line2process4source-read-by-fetch2programsource4apu#000002006 # line2process4source-read-by-fetch2programsource4apu#000002007 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000002008 line2process4source-read-by-fetch2programsource4apu#000002009 apu2sampler4xi5test() line2process4source-read-by-fetch2programsource4apu#000002010 line2process4source-read-by-fetch2programsource4apu#000002011 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000002012 print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) line2process4source-read-by-fetch2programsource4apu#000002013 # line2process4source-read-by-fetch2programsource4apu#000002014 line2process4source-read-by-fetch2programsource4apu#000002015 print('=' *33) line2process4source-read-by-fetch2programsource4apu#000002016 line2process4source-read-by-fetch2programsource4apu#000002017 #/function4xi line2process4source-read-by-fetch2programsource4apu#000002018 line2process4source-read-by-fetch2programsource4apu#000002019 line2process4source-read-by-fetch2programsource4apu#000002020 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002021 # __main__ line2process4source-read-by-fetch2programsource4apu#000002022 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002023 if __name__ == '__main__': line2process4source-read-by-fetch2programsource4apu#000002024 main() line2process4source-read-by-fetch2programsource4apu#000002025 #/program4xi line2process4source-read-by-fetch2programsource4apu#000002026 line2process4source-read-by-fetch2programsource4apu#000002027 line2process4source-read-by-fetch2programsource4apu#000002028 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002029 # Recorded History line2process4source-read-by-fetch2programsource4apu#000002030 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002031 #record4xi record = " line2process4source-read-by-fetch2programsource4apu#000002032 # apu2sampler4xi5test.txt line2process4source-read-by-fetch2programsource4apu#000002033 # sense-apu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4apu#000002034 # reason-apu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4apu#000002035 # ace-apu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4apu#000002036 #" line2process4source-read-by-fetch2programsource4apu#000002037 # line2process4source-read-by-fetch2programsource4apu#000002038 line2process4source-read-by-fetch2programsource4apu#000002039 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002040 # Legal Notice line2process4source-read-by-fetch2programsource4apu#000002041 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002042 #protect4xi protection = "copyright" line2process4source-read-by-fetch2programsource4apu#000002043 # owner = "Small Smart" line2process4source-read-by-fetch2programsource4apu#000002044 # rights = "All rights reserved" line2process4source-read-by-fetch2programsource4apu#000002045 # state = "California" line2process4source-read-by-fetch2programsource4apu#000002046 # country = "United States of America" line2process4source-read-by-fetch2programsource4apu#000002047 # codes = "Codes established in California and applicable to corporations in California" line2process4source-read-by-fetch2programsource4apu#000002048 # compliance = "The California Law" line2process4source-read-by-fetch2programsource4apu#000002049 # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" line2process4source-read-by-fetch2programsource4apu#000002050 #/ line2process4source-read-by-fetch2programsource4apu#000002051 line2process4source-read-by-fetch2programsource4apu#000002052 line2process4source-read-by-fetch2programsource4apu#000002053 line2process4source-read-by-fetch2programsource4apu#000002054 #end4xi end = " line2process4source-read-by-fetch2programsource4apu#000002055 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002056 # end of apu2sampler4xi5test.py line2process4source-read-by-fetch2programsource4apu#000002057 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4apu#000002058 #" line2process4source-read-by-fetch2programsource4apu#000002059 #/ name2program4source-skipped-by-fetch2programsource4apu#000000032 ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt') name2program4source-skipped-by-fetch2programsource4apu#000002104 ('e://scope4xi//041721//zap//lib//a//index', '.html') name2program4source-skipped-by-fetch2programsource4apu#000002131 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002142 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002153 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002164 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002175 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002186 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002197 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002208 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002219 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002230 ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002241 ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4apu#000002252 ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe') path2input4source-analyzing-by-fetch2programsource4apu#000000045 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000060 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000075 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000000090 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000105 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000120 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp path2input4source-analyzing-by-fetch2programsource4apu#000000476 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000491 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000000506 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000521 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000000536 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000551 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000000566 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000581 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000000596 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000000611 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000002075 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-analyzing-by-fetch2programsource4apu#000002090 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-analyzing-by-fetch2programsource4apu#000002117 e://scope4xi//041721//zap//lib//a//version4xi.py path2input4source-set-by-fetch2programsource4apu#000000044 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-set-by-fetch2programsource4apu#000000059 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-set-by-fetch2programsource4apu#000000074 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-set-by-fetch2programsource4apu#000000089 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-set-by-fetch2programsource4apu#000000104 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-set-by-fetch2programsource4apu#000000119 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp path2input4source-set-by-fetch2programsource4apu#000000475 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-set-by-fetch2programsource4apu#000000490 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-set-by-fetch2programsource4apu#000000505 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-set-by-fetch2programsource4apu#000000520 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-set-by-fetch2programsource4apu#000000535 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-set-by-fetch2programsource4apu#000000550 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-set-by-fetch2programsource4apu#000000565 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-set-by-fetch2programsource4apu#000000580 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-set-by-fetch2programsource4apu#000000595 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-set-by-fetch2programsource4apu#000000610 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py path2input4source-set-by-fetch2programsource4apu#000002074 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-set-by-fetch2programsource4apu#000002089 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-set-by-fetch2programsource4apu#000002116 e://scope4xi//041721//zap//lib//a//version4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000046 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000047 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000048 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000049 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000061 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000062 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000063 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000064 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000076 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000077 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000078 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000079 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000091 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000092 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000093 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000094 e://scope4xi//041721//zap//lib//a//apu2context4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000106 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000107 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000108 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000109 e://scope4xi//041721//zap//lib//a//apu2device4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000121 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4apu#000000122 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4apu#000000465 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4apu#000000477 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000478 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000479 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000480 e://scope4xi//041721//zap//lib//a//apu2event4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000492 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000493 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000494 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000495 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000507 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000508 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000509 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000510 e://scope4xi//041721//zap//lib//a//apu2image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000522 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000523 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000524 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000525 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000537 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000538 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000539 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000540 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000552 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000553 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000554 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000555 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000567 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000568 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000569 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000570 e://scope4xi//041721//zap//lib//a//apu2program4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000582 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000583 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000584 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000585 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000000597 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000598 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000599 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4apu#000000600 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002062 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002063 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002064 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002076 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002077 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002078 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002079 e://scope4xi//041721//zap//lib//a//apu3image4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002091 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002092 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002093 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002094 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4apu#000002118 e://scope4xi//041721//zap//lib//a//version4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002119 e://scope4xi//041721//zap//lib//a//version4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002120 e://scope4xi//041721//zap//lib//a//version4xi.py path2input4source-skipped-by-fetch2programsource4apu#000002121 e://scope4xi//041721//zap//lib//a//version4xi.py pipe-created-by-create2programwithsource4apu#000002278 (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210) pipe-try-by-create2programwithsource4apu#000002277 None pipe2apu-got-by-create2programwithsource4apu#000000016 (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210) pipe2apu-trying-by-create2programwithsource4apu#000000015 None platform-created-by-create2programwithsource4apu#000002268 {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'} platform-try-by-create2programwithsource4apu#000002267 {} platform2xi-created-by-create2programwithsource4apu#000000007 {} platform2xi-got-by-create2programwithsource4apu#000000008 {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'} program-to-read-decided-by-fetch2programsource4apu#000000123 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp program-to-read-decided-by-fetch2programsource4apu#000000612 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000043 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000058 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000073 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000088 e://scope4xi//041721//zap//lib//a//apu2context4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000103 e://scope4xi//041721//zap//lib//a//apu2device4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000118 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp program2explore4apu-analyzing-by-fetch2programsource4apu#000000474 e://scope4xi//041721//zap//lib//a//apu2event4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000489 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000504 e://scope4xi//041721//zap//lib//a//apu2image4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000519 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000534 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000549 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000564 e://scope4xi//041721//zap//lib//a//apu2program4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000579 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000594 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000000609 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000002073 e://scope4xi//041721//zap//lib//a//apu3image4xi.py program2explore4apu-analyzing-by-fetch2programsource4apu#000002088 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py program2explore4apu-analyzing-by-fetch2programsource4apu#000002115 e://scope4xi//041721//zap//lib//a//version4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000030 e://scope4xi//041721//zap//lib//a//a2scope4xi.txt program2explore4apu-passed-to-fetch2programsource4apu#000000041 e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000056 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000071 e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000000086 e://scope4xi//041721//zap//lib//a//apu2context4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000101 e://scope4xi//041721//zap//lib//a//apu2device4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000116 e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp program2explore4apu-passed-to-fetch2programsource4apu#000000472 e://scope4xi//041721//zap//lib//a//apu2event4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000487 e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000000502 e://scope4xi//041721//zap//lib//a//apu2image4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000517 e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000000532 e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000547 e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000000562 e://scope4xi//041721//zap//lib//a//apu2program4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000577 e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000000592 e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000000607 e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000002071 e://scope4xi//041721//zap//lib//a//apu3image4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000002086 e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py program2explore4apu-passed-to-fetch2programsource4apu#000002102 e://scope4xi//041721//zap//lib//a//index.html program2explore4apu-passed-to-fetch2programsource4apu#000002113 e://scope4xi//041721//zap//lib//a//version4xi.py program2explore4apu-passed-to-fetch2programsource4apu#000002129 e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002140 e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002151 e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002162 e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002173 e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002184 e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002195 e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002206 e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002217 e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002228 e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002239 e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc program2explore4apu-passed-to-fetch2programsource4apu#000002250 e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe queue-created-by-create2programwithsource4apu#000002276 queue4xi.Queue4Xi object at 0x02ED9EB0 queue-try-by-create2programwithsource4apu#000002275 None queue2apu-got-by-create2programwithsource4apu#000000014 queue4xi.Queue4Xi object at 0x02ED9EB0 queue2apu-trying-by-create2programwithsource4apu#000000013 None size-initialized-by-create2programwithsource4apu#000002293 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445} size-try-by-create2programwithsource4apu#000002292 None size2source4apu-set-by-create2programwithsource4apu#000002258 {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445} task4program2apu-created-by-create2programwithsource4apu#000000003 {} task4program2apu-created-by-create2programwithsource4apu#000000006 {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed task4program2apu-to-create2programwithsource4apu#000000002 None task4program2apu-try-by-create2programwithsource4apu#000002285 {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed --------------------------------- xml_trace_ace4xi: create ACE XML file --------------------------------- ================================= xml_trace_ace4xi: opened XML file: E:\scope4xi\041721\zap\web\xml\ace-apu2program4xi5test.xml ================================= --------------------------------- xml_trace_ace4xi: create header for XML file --------------------------------- ACE writing: class 'apu2program4xi.DirectoryWalker' ACE writing: {} ACE writing: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ACE writing: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: 0 ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {} ACE writing: 2 ACE writing: 2 ACE writing: 2 ACE writing: 0 ACE writing: 1 ACE writing: None ACE writing: 1 ACE writing: function create2programwithsource4apu at 0x02E15A08 ACE writing: {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ACE writing: {} ACE writing: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'} ACE writing: {} ACE writing: {'SIZE2MEMORY4LOCAL': 32768, 'ROUND2NEAREST4EVEN': 'ACK', 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'MAX2SIZE4KERNELARGUMENT': 4096, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'RESOLUTION2TIMER4PROFILING': 318, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'VERSION2DRIVER': '2.0', 'TYPE2MEMORY4LOCAL': 'Global', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD', 'NATIVE2WIDTHLONG4VECTOR': 2, 'SIZE2LINE4CACHE': 64, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'MAX2NUMBER4CONSTANTARGS': 8, 'MAX2SIZE4WORKGROUP': 1024, 'MAX2FREQUENCY4CLOCK': 3210, 'MAX2DIMENSIONS4WORKITEMS': 3, 'ID': 4033, 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2CACHE': 65536, 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2MEMORY4GLOBAL': 3221225472, 'ENDIANESS2DEVICE': 'Little', 'SIZE2BUFFER4CONSTANT': 65536, 'NATIVE2WIDTHCHAR4VECTOR': 16, 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'PROFILE': 'FULL_PROFILE', 'TYPE': 'CL_DEVICE_TYPE_APU', 'OUT-OF-ORDER2QUEUE': 'NACK', 'NATIVE2WIDTHINT4VECTOR': 4, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'ACK2RETURN': ' 1C-1D-1E-1F-1D-2A-3A-4A-5A-6A-7A-8A-9A-10A-11A-12A-13A-14A-15A-16A-17A-18A-19A-20A-21A-22A-23A-24A-25A-26A-27A-28A-29A-30A-31A-32A-33A-34A-35A-36A-37A-38A-39A-40A-41A-42A-43A-44A-45A-46A-47A-48A-49A-50A-51A-52A-53A-54A-55A-56A-57A-58A-59A-60A-', 'TYPE4CACHE': 'Read/Write', 'SUPPORT2IMAGE': 'NACK', 'EXTENSIONS': 'cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_media_ops cl_amd_popcnt cl_amd_printf cl_khr_d3d10_sharing', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'MAX2UNITS4COMPUTE': 4, 'NATIVE2WIDTHFLOAT4VECTOR': 4, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'QUIET2NANS': 'ACK', 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'MAX2WORKITEM2': 1024, 'AVAILABLE': 'ACK', 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'BITS2ADDRESS': 64, 'VENDOR': 'AuthenticAMD', 'SUPPORT2CORRECTION4ERROR': 0, 'ROUND2ZERO': 'ACK', 'PREFERRED2WIDTHSHORT4VECTOR': 8, 'ALIGNMENT2ADDRESS4BASE': 1024, 'MAX2ALLOCATION4MEMORY': 1073741824, 'PREFERRED2WIDTHINT4VECTOR': 4, 'PROFILING2QUEUE': 'ACK'} ACE writing: {} ACE writing: e://scope4xi//041721//zap//lib//a// ACE writing: e://scope4xi//041721//zap//lib//a// ACE writing: e://scope4xi//041721//zap//lib//a//bin ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__ ACE writing: None ACE writing: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: {'FUNCTION2CALLBACK': function trace2event4apu at 0x02CF7E88, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE570, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE550), 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed ACE writing: {} ACE writing: txt ACE writing: html ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: pyc ACE writing: exe ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}} ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// apu2dummy4xi5test.cpp\n', 3: '// -----------------------------------------------------------------------------------------------------------------\n', 4: '#include stdlib.h\n', 5: '#include stdio.h\n', 6: '#include CL/opencl.h\n', 7: '\n', 8: '#define DEVID 0\n', 9: '#define DEVID2 1\n', 10: '\n', 11: '// Program source\n', 12: 'const char* KernelSource =\n', 13: '" __kernel void simple( __global float* A) { \\n"\n', 14: '" int tid = get_global_id(0); \\n"\n', 15: '" A[tid] = A[tid] + 5; \\n"\n', 16: '"} \\n"\n', 17: '" \\n"\n', 18: '"__kernel void simple2(__global float *A, int nLoops) { \\n"\n', 19: '" \\n"\n', 20: '" int tid = get_global_id(0); \\n"\n', 21: '" for (int i = 0; i nLoops; i++) { \\n"\n', 22: '" A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n', 23: '" } \\n"\n', 24: '"} \\n"\n', 25: '"__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n', 26: '" \\n"\n', 27: '" int tid = get_global_id(0); \\n"\n', 28: '" if (tid entries) \\n"\n', 29: '" B[tid] = 2 * A[tid]; \\n"\n', 30: '" \\n"\n', 31: '"} \\n";\n', 32: '\n', 33: '\n', 34: ' // native kernel data structure\n', 35: 'struct myNativeKernelData {\n', 36: ' float *inData;\n', 37: ' float *outData;\n', 38: ' int size;\n', 39: '};\n', 40: ' \n', 41: '/*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n', 42: 'void myNativeKernel(void *data) {\n', 43: ' struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n', 44: '\n', 45: ' printf("Data passed to native kernel\\n");\n', 46: ' for (int i = 0; i NKData-size; i++) {\n', 47: ' if (i (NKData-size -5))\n', 48: ' printf("n, x = %d %f\\n",i,NKData-inData[i]);\n', 49: ' NKData-outData[i] = 2*NKData-inData[i];\n', 50: ' }\n', 51: '\n', 52: '}\n', 53: '/*/function4xi*/\n', 54: ' \n', 55: '/*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n', 56: 'void printKernelTimes(cl_event event,char *eventName) {\n', 57: ' static cl_ulong baseTime = -1;\n', 58: ' cl_ulong sTime,eTime;\n', 59: ' cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n', 60: ' err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n', 61: '\n', 62: ' // Set the base time and then subtract it to make the numbers easier to read\n', 63: ' if (baseTime == -1)\n', 64: ' baseTime = sTime;\n', 65: ' if (err != CL_SUCCESS) {\n', 66: ' printf("Failed to get times for %s\\n",eventName);\n', 67: ' }\n', 68: ' else {\n', 69: ' printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n', 70: ' }\n', 71: '}\n', 72: '/*/function4xi*/\n', 73: ' \n', 74: '/*function4xi function = "OCLError" usage = "error code checking"*/ \n', 75: 'void OCLError(cl_int err, int line) {\n', 76: ' if (err != CL_SUCCESS) {\n', 77: ' printf("Error at line %d\\n",line);\n', 78: ' exit(1);\n', 79: ' }\n', 80: '}\n', 81: '/*/function4xi*/\n', 82: '\n', 83: '/*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n', 84: '__kernel void nbody_kern(\n', 85: ' float dt1, float eps,\n', 86: ' __global float4* pos_old,\n', 87: ' __global float4* pos_new,\n', 88: ' __global float4* vel,\n', 89: ' __local float4* pblock\n', 90: ' )\n', 91: ' {\n', 92: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 93: ' int gti = get_global_id(0);\n', 94: ' int ti = get_local_id(0);\n', 95: ' int n = get_global_size(0);\n', 96: ' int nt = get_local_size(0);\n', 97: ' int nb = n/nt;\n', 98: ' float4 p = pos_old[gti];\n', 99: ' float4 v = vel[gti];\n', 100: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 101: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 102: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 103: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 104: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 105: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 106: ' float4 d = p2 - p;\n', 107: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 108: ' float f = p2.w*invr*invr*invr;\n', 109: ' a += f*d; /* Accumulate acceleration */\n', 110: ' }\n', 111: '\n', 112: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 113: ' }\n', 114: ' p += dt*v + 0.5f*dt*dt*a;\n', 115: ' v += dt*a;\n', 116: ' pos_new[gti] = p;\n', 117: ' vel[gti] = v;\n', 118: ' }\n', 119: '/*/function4xi*/ \n', 120: '\n', 121: '/*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n', 122: '__kernel void nbody_kern(\n', 123: ' float dt1, float eps,\n', 124: ' __global float4* pos_old,\n', 125: ' __global float4* pos_new,\n', 126: ' __global float4* vel,\n', 127: ' __local float4* pblock,\n', 128: ' __global float4* pos2\n', 129: ') {\n', 130: ' const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n', 131: ' int gti = get_global_id(0);\n', 132: ' int ti = get_local_id(0);\n', 133: ' int n = get_global_size(0);\n', 134: ' int nt = get_local_size(0);\n', 135: ' int nb = n/nt;\n', 136: ' float4 p = pos_old[gti];\n', 137: ' float4 v = vel[gti];\n', 138: ' float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n', 139: ' for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n', 140: ' pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n', 141: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 142: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 143: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 144: ' float4 d = p2 - p;\n', 145: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 146: ' float f = p2.w*invr*invr*invr;\n', 147: ' a += f*d; /* Accumulate acceleration */\n', 148: ' }\n', 149: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 150: ' pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n', 151: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n', 152: ' for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n', 153: ' float4 p2 = pblock[j]; /* Read a cached particle position */\n', 154: ' float4 d = p2 - p;\n', 155: ' float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n', 156: ' float f = p2.w*invr*invr*invr;\n', 157: ' a += f*d; /* Accumulate acceleration */\n', 158: ' }\n', 159: ' barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n', 160: ' }\t \n', 161: '/*/function4xi*/\n', 162: '\n', 163: '/*function4xi function = "main" usage = "main"*/ \n', 164: 'int main() {\n', 165: ' // OpenCL Platform, Device etc vars\n', 166: ' cl_device_id *Devices; // OpenCL device\n', 167: ' cl_context Context; // OpenCL context\n', 168: ' static cl_platform_id Platform; // OpenCL platform\n', 169: ' cl_program Program;\n', 170: ' cl_command_queue *CommandQs; // OpenCL command queues\n', 171: ' cl_int err;\n', 172: '\n', 173: ' // Get platform IDs\n', 174: ' err = clGetPlatformIDs( 1, Platform, NULL);\n', 175: ' OCLError(err,__LINE__);\n', 176: '\n', 177: ' // get all devices\n', 178: ' cl_uint nDevices = -1;\n', 179: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n', 180: ' OCLError(err,__LINE__);\n', 181: ' if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n', 182: '\n', 183: ' Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n', 184: ' err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n', 185: ' OCLError(err,__LINE__);\n', 186: '\n', 187: ' // Create a compute context \n', 188: ' Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n', 189: ' OCLError(err,__LINE__);\n', 190: ' // Create a command queue\n', 191: ' CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n', 192: ' for (int i = 0; i nDevices; i++) {\n', 193: ' CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n', 194: ' OCLError(err,__LINE__);\n', 195: ' }\n', 196: '\n', 197: ' // Create the compute program from the source buffer\n', 198: ' Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n', 199: ' OCLError(err,__LINE__);\n', 200: '\n', 201: ' err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n', 202: ' OCLError(err,__LINE__);\n', 203: '\n', 204: ' // Create the compute kernel from the program\n', 205: ' cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n', 206: ' OCLError(err,__LINE__);\n', 207: '\n', 208: ' // kernel data vars\n', 209: ' float *a_h; // host memory used for original data and return data\n', 210: ' cl_mem a_d; // device memory used for input/output \n', 211: ' cl_mem b_d; // device memory used for output \n', 212: ' size_t entries = 64000000; // number of entries in the array\n', 213: ' size_t local = 1;\n', 214: ' int count = 100;\n', 215: '\n', 216: ' a_h = (float *)malloc(entries*sizeof(float));\n', 217: ' for (int i =0; i entries; i++)\n', 218: ' a_h[i] = (1 25) + 6;\n', 219: ' a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n', 220: ' OCLError(err,__LINE__);\n', 221: ' b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n', 222: ' OCLError(err,__LINE__);\n', 223: '\n', 224: '\n', 225: ' cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n', 226: ' OCLError(err,__LINE__);\n', 227: ' clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n', 228: ' OCLError(err,__LINE__);\n', 229: ' clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n', 230: ' OCLError(err,__LINE__);\n', 231: ' clSetKernelArg(Kernel2, 1, sizeof(int), count);\n', 232: ' OCLError(err,__LINE__);\n', 233: '\n', 234: ' clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n', 235: '\n', 236: ' cl_event k2Event[1];\n', 237: ' cl_event k1Event[1];\n', 238: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n', 239: ' OCLError(err, __LINE__);\n', 240: ' err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n', 241: ' OCLError(err, __LINE__);\n', 242: '\n', 243: ' //\n', 244: ' // Now try enqueueing a native kernel\n', 245: ' //\n', 246: ' // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n', 247: ' cl_command_queue CPUQueue = NULL;\n', 248: ' for (int i = 0; i nDevices; i++) {\n', 249: ' cl_device_id qDevID;\n', 250: ' cl_device_type DevType;\n', 251: ' cl_device_exec_capabilities DevExecCap;\n', 252: '\n', 253: ' // get the device attached to this queue\n', 254: ' err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n', 255: ' OCLError(err, __LINE__);\n', 256: '\n', 257: ' // get the type of this device\n', 258: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n', 259: ' OCLError(err, __LINE__);\n', 260: '\n', 261: ' err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n', 262: ' OCLError(err, __LINE__);\n', 263: '\n', 264: ' // compare the device_type for this device\n', 265: ' if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n', 266: ' (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n', 267: ' CPUQueue = CommandQs[i];\n', 268: ' }\n', 269: ' }\n', 270: '\n', 271: ' cl_event k3Event[1];\n', 272: ' cl_event eventLists[2];\n', 273: ' eventLists[0] = k2Event[0];\n', 274: ' eventLists[1] = k1Event[0];\n', 275: ' if (CPUQueue != NULL) {\n', 276: '\n', 277: '#ifndef NATIVEK\n', 278: ' cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n', 279: ' OCLError(err, __LINE__);\n', 280: '\n', 281: ' clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n', 282: ' OCLError(err,__LINE__);\n', 283: ' clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n', 284: ' OCLError(err,__LINE__);\n', 285: ' clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n', 286: ' OCLError(err,__LINE__);\n', 287: '\n', 288: ' err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n', 289: ' OCLError(err, __LINE__);\n', 290: '#else\n', 291: ' // Allocate and populate the data structure for the nativeKernel\n', 292: ' struct myNativeKernelData NKData;\n', 293: ' NKData.size = entries;\n', 294: '\n', 295: ' cl_mem memList[2];\n', 296: ' memList[0] = a_d;\n', 297: ' memList[1] = b_d;\n', 298: '\n', 299: ' void *memLocs[2];\n', 300: ' memLocs[0] = (NKData.inData);\n', 301: ' memLocs[1] = (NKData.outData);\n', 302: '\n', 303: ' // Enqueue the kernel\n', 304: ' err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n', 305: ' OCLError(err, __LINE__);\n', 306: '#endif\n', 307: '\n', 308: ' err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n', 309: ' OCLError(err, __LINE__);\n', 310: '\n', 311: ' printf("Data from b_d\\n");\n', 312: ' for (int i = (entries - 5); i entries; i++)\n', 313: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 314: ' }\n', 315: ' else {\n', 316: ' printf("No CPU device found\\n");\n', 317: ' }\n', 318: '\n', 319: ' err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n', 320: ' OCLError(err, __LINE__);\n', 321: '\n', 322: ' printf("Data from a_d, should be half of data from b_d\\n");\n', 323: ' for (int i = (entries - 5); i entries; i++)\n', 324: ' printf("n, x = %d %f\\n",i,a_h[i]);\n', 325: '\n', 326: ' printKernelTimes(k2Event[0],"Kernel 2");\n', 327: ' printKernelTimes(k1Event[0],"Kernel 1");\n', 328: ' printKernelTimes(k3Event[0],"Kernel 3");\n', 329: '\n', 330: ' // tidy up\n', 331: ' free(Devices);\n', 332: ' free(CommandQs);\n', 333: ' free(a_h);\n', 334: ' clReleaseMemObject(a_d);\n', 335: ' clReleaseMemObject(b_d);\n', 336: '}\n', 337: '/*/function4xi*/\n'}, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "apu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests apu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "apu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['apu2sampler4xi5test'] \n", 15: '#"\n', 16: '#/\n', 17: '\n', 18: '# -------------------------------------------------------------------------------------------------\n', 19: '# Standard Imports \n', 20: '# -------------------------------------------------------------------------------------------------\n', 21: '#standardize4xi standard = "\n', 22: 'import os\n', 23: 'import sys\n', 24: 'import threading \n', 25: 'import _thread \n', 26: '\n', 27: 'import signal\n', 28: 'import itertools\n', 29: 'import weakref\n', 30: 'import logging \n', 31: '#"\n', 32: '#/\n', 33: '\n', 34: '\n', 35: '# -------------------------------------------------------------------------------------------------\n', 36: '# Scope4Xi imports \n', 37: '# -------------------------------------------------------------------------------------------------\n', 38: '#dragonize4xi dragonization = "\n', 39: 'import version4xi\n', 40: ' \n', 41: '#"\n', 42: '#/\n', 43: '\n', 44: '# -------------------------------------------------------------------------------------------------\n', 45: '# Multiprocessing Imports \n', 46: '# -------------------------------------------------------------------------------------------------\n', 47: '#process4xi process = "\n', 48: 'import _multiprocessing\n', 49: '#"\n', 50: '#/ \n', 51: '\n', 52: '# -------------------------------------------------------------------------------------------------\n', 53: '# DragonXi imports \n', 54: '# -------------------------------------------------------------------------------------------------\n', 55: '#dragonize4xi dragonization = "\n', 56: 'from pipe4xi import Pipe4Xi \n', 57: 'from platformids4xi import get2platformids4xi\n', 58: 'from queue4xi import Queue4Xi\n', 59: '\n', 60: '# -------------------------------------------------------------------------------------------------\n', 61: '# Command queue module \n', 62: '# -------------------------------------------------------------------------------------------------\n', 63: 'from apu2commandqueue4xi import APU2CommandQueue4Xi\n', 64: 'from apu2commandqueue4xi import create2commandqueue4apu \n', 65: 'from apu2commandqueue4xi import flush2commandqueue4apu\n', 66: 'from apu2commandqueue4xi import finish2commandqueue4apu\n', 67: 'from apu2commandqueue4xi import get2commandqueueinfo4apu\n', 68: 'from apu2commandqueue4xi import release2commandqueue4apu\n', 69: 'from apu2commandqueue4xi import retain2commandqueue4apu\n', 70: 'from apu2commandqueue4xi import set2commandqueue4apu\n', 71: 'from apu2commandqueue4xi import trace2commandqueue4apu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from apu2context4xi import APU2Context4Xi \n', 77: 'from apu2context4xi import create2context4apu\n', 78: 'from apu2context4xi import get2context4apu\n', 79: 'from apu2context4xi import release2context4apu\n', 80: 'from apu2context4xi import retain2context4apu\n', 81: 'from apu2context4xi import set2context4apu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from apu2device4xi import APU4Xi\n', 88: 'from apu2device4xi import init2apu4xi \n', 89: 'from apu2device4xi import set2apu4xi\n', 90: 'from apu2device4xi import get2apu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from apu2event4xi import APU2Event4Xi\n', 97: 'from apu2event4xi import create2event4apu\n', 98: 'from apu2event4xi import get2eventinfo4apu\n', 99: 'from apu2event4xi import release2event4apu\n', 100: 'from apu2event4xi import retain2event4apu\n', 101: 'from apu2event4xi import set2eventcallback4apu \n', 102: 'from apu2event4xi import set2event4apu\n', 103: 'from apu2event4xi import trace2event4apu\n', 104: 'from apu2event4xi import wait2event4apu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from apu2image4xi import APU2Image4Xi\n', 110: 'from apu2image4xi import create2image4apu\n', 111: 'from apu2image4xi import get2imageinfo4apu\n', 112: 'from apu2image4xi import get2supportedimageformats4apu\n', 113: 'from apu2image4xi import manoeuvre2copyimage4apu\n', 114: 'from apu2image4xi import manoeuvre2copyimagetobuffer4apu\n', 115: 'from apu2image4xi import manoeuvre2copybuffertoimage4apu\n', 116: 'from apu2image4xi import manoeuvre2readimage4apu\n', 117: 'from apu2image4xi import manoeuvre2writeimage4apu\n', 118: 'from apu2image4xi import manoeuvre2mapimage4apu\n', 119: 'from apu2image4xi import copy2image4apu\n', 120: 'from apu2image4xi import copy2imagetobuffer4apu\n', 121: 'from apu2image4xi import copy2buffertoimage4apu\n', 122: 'from apu2image4xi import read2image4apu\n', 123: 'from apu2image4xi import map2image4apu\n', 124: 'from apu2image4xi import release2image4apu\n', 125: 'from apu2image4xi import retain2image4apu\n', 126: 'from apu2image4xi import set2imagecallback4apu \n', 127: 'from apu2image4xi import set2image4apu\n', 128: 'from apu2image4xi import trace2image4apu\n', 129: 'from apu2image4xi import wait2image4apu\n', 130: 'from apu2image4xi import write2image4apu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from apu2sampler4xi import APU2Sampler4Xi\n', 136: 'from apu2sampler4xi import create2sampler4apu\n', 137: 'from apu2sampler4xi import get2samplerinfo4apu\n', 138: 'from apu2sampler4xi import release2sampler4apu\n', 139: 'from apu2sampler4xi import retain2sampler4apu\n', 140: 'from apu2sampler4xi import set2samplercallback4apu \n', 141: 'from apu2sampler4xi import set2sampler4apu\n', 142: 'from apu2sampler4xi import trace2sampler4apu\n', 143: '\n', 144: '# -------------------------------------------------------------------------------------------------\n', 145: '# Platform module \n', 146: '# -------------------------------------------------------------------------------------------------\n', 147: 'from platforminfo4xi import PlatformInfo4Xi \n', 148: 'from platforminfo4xi import init2platforminfo4xi\n', 149: 'from platforminfo4xi import set2platforminfo4xi\n', 150: 'from platforminfo4xi import get2platforminfo4xi\n', 151: '\n', 152: '# -------------------------------------------------------------------------------------------------\n', 153: '# Trace modules \n', 154: '# -------------------------------------------------------------------------------------------------\n', 155: '\n', 156: ' # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n', 157: ' \n', 158: 'from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n', 159: 'from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n', 160: '\n', 161: 'from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n', 162: 'from pickle2a4xi import Pickle2a4Xi\n', 163: 'from pickle2b4xi import Pickle2b4Xi\n', 164: 'from pickle2c4xi import Pickle2c4Xi\n', 165: 'from pickle2d4xi import Pickle2d4Xi\n', 166: 'from pickle2e4xi import Pickle2e4Xi\n', 167: 'from pickle2f4xi import Pickle2f4Xi\n', 168: 'from pickle2g4xi import Pickle2g4Xi\n', 169: 'from pickle2h4xi import Pickle2h4Xi\n', 170: 'from pickle2i4xi import Pickle2i4Xi\n', 171: 'from pickle2j4xi import Pickle2j4Xi\n', 172: 'from pickle2k4xi import Pickle2k4Xi\n', 173: 'from pickle2l4xi import Pickle2l4Xi\n', 174: 'from pickle2m4xi import Pickle2m4Xi\n', 175: 'from pickle2n4xi import Pickle2n4Xi\n', 176: 'from pickle2o4xi import Pickle2o4Xi\n', 177: 'from pickle2p4xi import Pickle2p4Xi\n', 178: 'from pickle2q4xi import Pickle2q4Xi\n', 179: 'from pickle2r4xi import Pickle2r4Xi\n', 180: 'from pickle2s4xi import Pickle2s4Xi\n', 181: 'from pickle2t4xi import Pickle2t4Xi\n', 182: 'from pickle2u4xi import Pickle2u4Xi\n', 183: 'from pickle2v4xi import Pickle2v4Xi\n', 184: 'from pickle2w4xi import Pickle2w4Xi\n', 185: 'from pickle2x4xi import Pickle2x4Xi\n', 186: 'from pickle2y4xi import Pickle2y4Xi\n', 187: 'from pickle2z4xi import Pickle2z4Xi\n', 188: 'from pickle2_4xi import Pickle2_4Xi \n', 189: '\n', 190: ' \n', 191: 'from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n', 192: 'from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n', 193: 'from actor2c4xi import Actor2c4Xi\n', 194: 'from actor2d4xi import Actor2d4Xi\n', 195: 'from actor2e4xi import Actor2e4Xi\n', 196: 'from actor2f4xi import Actor2f4Xi\n', 197: 'from actor2g4xi import Actor2g4Xi\n', 198: 'from actor2h4xi import Actor2h4Xi\n', 199: 'from actor2i4xi import Actor2i4Xi\n', 200: 'from actor2j4xi import Actor2j4Xi\n', 201: 'from actor2k4xi import Actor2k4Xi\n', 202: 'from actor2l4xi import Actor2l4Xi\n', 203: 'from actor2m4xi import Actor2m4Xi\n', 204: 'from actor2n4xi import Actor2n4Xi\n', 205: 'from actor2o4xi import Actor2o4Xi\n', 206: 'from actor2p4xi import Actor2p4Xi\n', 207: 'from actor2q4xi import Actor2q4Xi\n', 208: 'from actor2r4xi import Actor2r4Xi\n', 209: 'from actor2s4xi import Actor2s4Xi\n', 210: 'from actor2t4xi import Actor2t4Xi\n', 211: 'from actor2u4xi import Actor2u4Xi\n', 212: 'from actor2v4xi import Actor2v4Xi\n', 213: 'from actor2w4xi import Actor2w4Xi\n', 214: 'from actor2x4xi import Actor2x4Xi\n', 215: 'from actor2y4xi import Actor2y4Xi\n', 216: 'from actor2z4xi import Actor2z4Xi\n', 217: 'from actor2_4xi import Actor2_4Xi\n', 218: 'from time4xi import time4xi # time stamp to events\n', 219: '\n', 220: 'from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n', 221: 'from xml_trace_reason4xi import xml_trace_reason4xi\n', 222: 'from xml_trace_ace4xi import xml_trace_ace4xi \n', 223: '#" \n', 224: '#/\n', 225: '\n', 226: '\n', 227: '# -------------------------------------------------------------------------------------------------\n', 228: '# Global constants \n', 229: '# ------------------------------------------------------------------------------------------------\n', 230: '#globalize4xi globalization = "\n', 231: '\n', 232: 'global PickleKB4Xi\n', 233: '\n', 234: '# -------------------------------------------------------------------------------------------------\n', 235: '# Settings\n', 236: '# -------------------------------------------------------------------------------------------------\n', 237: '#set4xi setting = "\n', 238: 'PickleKB4Xi = {\n', 239: " 'a': Pickle2a4Xi,\n", 240: ' # \n', 241: " 'b': Pickle2b4Xi,\n", 242: ' # \n', 243: " 'c': Pickle2c4Xi,\n", 244: ' # \n', 245: " 'd': Pickle2d4Xi,\n", 246: ' # \n', 247: " 'e': Pickle2e4Xi,\n", 248: " 'f': Pickle2f4Xi,\n", 249: " 'g': Pickle2g4Xi,\n", 250: " 'h': Pickle2h4Xi,\n", 251: " 'i': Pickle2i4Xi,\n", 252: " 'j': Pickle2j4Xi,\n", 253: " 'k': Pickle2k4Xi,\n", 254: " 'l': Pickle2l4Xi,\n", 255: " 'm': Pickle2m4Xi,\n", 256: " 'n': Pickle2n4Xi,\n", 257: " 'o': Pickle2o4Xi,\n", 258: " 'p': Pickle2p4Xi,\n", 259: " 'q': Pickle2q4Xi,\n", 260: " 'r': Pickle2r4Xi,\n", 261: " 's': Pickle2s4Xi,\n", 262: " 't': Pickle2t4Xi,\n", 263: " 'u': Pickle2u4Xi,\n", 264: " 'v': Pickle2v4Xi,\n", 265: " 'w': Pickle2w4Xi,\n", 266: " 'x': Pickle2x4Xi,\n", 267: " 'y': Pickle2y4Xi,\n", 268: " 'z': Pickle2z4Xi,\n", 269: " '_': Pickle2_4Xi} \n", 270: '#"\n', 271: '#"/\n', 272: '\n', 273: '\n', 274: '# ----------------------------------------------------------------------------------------------------------\n', 275: '#function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n', 276: '#" \n', 277: '# ---------------------------------------------------------------------------------------------------------- \n', 278: 'def set2trace4xi():\n', 279: ' global t2xi \n', 280: ' global trace_object_count\n', 281: ' global PickleKB4Xi\n', 282: '\n', 283: ' # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 284: ' # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n', 285: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 286: ' \n', 287: ' # ---------------------------------------------------------------------------------------------\n', 288: ' # A, B .... _ \n', 289: ' # ---------------------------------------------------------------------------------------------\n', 290: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 291: ' for key2pickledb in keys2pickledb:\n', 292: ' # ----------------------------------------------------------------------------------------- \n', 293: ' # LETTERS\n', 294: ' # ----------------------------------------------------------------------------------------- \n', 295: " # print('=' *33)\n", 296: ' # print("STARTING LETTER : ", key2pickledb)\n', 297: " # print('=' *33)\n", 298: ' \n', 299: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 300: ' # print("STARTING DICTIONARY: ", dictionary2pickle)\n', 301: " # print('~' *33) \n", 302: ' # \n', 303: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 304: ' \n', 305: ' # ----------------------------------------------------------------------------------------- \n', 306: ' #\n', 307: ' # ----------------------------------------------------------------------------------------- \n', 308: ' for key2dictionary in keys2dictionary:\n', 309: ' # ------------------------------------------------------------------------------------- \n', 310: ' # DICTIONARY\n', 311: ' # ------------------------------------------------------------------------------------- \n', 312: " # print('~' *33) \n", 313: ' object2pickle = key2dictionary \n', 314: ' # print("STARTING OBJECT: ", object2pickle)\n', 315: " # print('~' *33) \n", 316: ' # pickle4xi(object2pickle)\n', 317: " # print('~' *33) \n", 318: ' # print("PICKLED object: ", object2pickle)\n', 319: ' # PICKLED object: _C4Xi, \n', 320: ' # --------------------------------------------------------------------------------- \n', 321: ' # Mark those with NACK4XI to be traced !\n', 322: ' # --------------------------------------------------------------------------------- \n', 323: " if dictionary2pickle[key2dictionary] == 'NACK4XI':\n", 324: ' set_param2xi = True \n', 325: ' key_param = object2pickle \n', 326: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 327: ' # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n', 328: ' # \n', 329: ' else:\n', 330: ' pass \n', 331: ' # --------------------------------------------------------------------------------- \n', 332: ' # END OF DICTIONARY\n', 333: ' # --------------------------------------------------------------------------------- \n', 334: ' # ----------------------------------------------------------------------------------------- \n', 335: ' # END OF LETTERS\n', 336: ' # ----------------------------------------------------------------------------------------- \n', 337: " # print('~' *33) \n", 338: ' # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n', 339: " # print('~' *33) \n", 340: ' # ----------------------------------------------------------------------------------------- \n', 341: ' #\n', 342: ' # ----------------------------------------------------------------------------------------- \n', 343: " # print('=' *33)\n", 344: ' # print("COMPLETED LETTER : ", key2pickledb)\n', 345: " # print('=' *33)\n", 346: ' # ---------------------------------------------------------------------------------------------\n', 347: ' # \n', 348: ' # ---------------------------------------------------------------------------------------------\n', 349: " print('=' *33)\n", 350: ' print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 351: " print('=' *33)\n", 352: '#/function4xi \n', 353: '\n', 354: ' \n', 355: '# -------------------------------------------------------------------------------------------------\n', 356: '#function4xi function = "deny2trace4xi" usage = "\n', 357: '# deny trace using pickle4xi functions !\n', 358: '#" \n', 359: '# ------------------------------------------------------------------------------------------------- \n', 360: 'def deny2trace4xi():\n', 361: ' global t2xi \n', 362: ' global trace_object_count\n', 363: ' global PickleKB4Xi\n', 364: '\n', 365: ' print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 366: ' print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n', 367: ' # print4xi.Print4Xi object at 0x0000000003715080\n', 368: ' \n', 369: ' # ---------------------------------------------------------------------------------------------\n', 370: ' # A, B .... _ \n', 371: ' # ---------------------------------------------------------------------------------------------\n', 372: ' keys2pickledb = sorted(PickleKB4Xi.keys())\n', 373: ' for key2pickledb in keys2pickledb:\n', 374: ' # ----------------------------------------------------------------------------------------- \n', 375: ' # LETTERS\n', 376: ' # ----------------------------------------------------------------------------------------- \n', 377: ' # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n', 378: ' dictionary2pickle = PickleKB4Xi[key2pickledb] \n', 379: ' # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n', 380: ' keys2dictionary = sorted(dictionary2pickle.keys())\n', 381: ' # ----------------------------------------------------------------------------------------- \n', 382: ' #\n', 383: ' # ----------------------------------------------------------------------------------------- \n', 384: ' for key2dictionary in keys2dictionary:\n', 385: ' \n', 386: ' # ------------------------------------------------------------------------------------- \n', 387: ' # DICTIONARY\n', 388: ' \n', 389: ' object2pickle = key2dictionary \n', 390: ' # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n', 391: ' # pickle4xi(object2pickle) \n', 392: ' # print("STEP: PICKLED object: ", object2pickle)\n', 393: ' # PICKLED object: _C4Xi, \n', 394: ' \n', 395: ' # --------------------------------------------------------------------------------- \n', 396: ' # ACK4XI = tested .i.e. NOT to be traced! \n', 397: ' # --------------------------------------------------------------------------------- \n', 398: " set_param2xi = 'ACK4XI' \n", 399: ' key_param = object2pickle \n', 400: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 401: ' # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n', 402: ' \n', 403: " dictionary2pickle[key2dictionary] = 'ACK4XI' \n", 404: ' \n', 405: ' \n', 406: ' # --------------------------------------------------------------------------------- \n', 407: ' # END OF DICTIONARY\n', 408: ' # --------------------------------------------------------------------------------- \n', 409: " # print('~' *33) \n", 410: ' # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n', 411: " # print('~' *33) \n", 412: ' # ----------------------------------------------------------------------------------------- \n', 413: ' # END OF LETTERS\n', 414: ' # ----------------------------------------------------------------------------------------- \n', 415: ' # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n', 416: ' # \n', 417: ' \n', 418: ' # ----------------------------------------------------------------------------------------- \n', 419: ' #\n', 420: ' # ----------------------------------------------------------------------------------------- \n', 421: ' # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n', 422: ' # _, a ... z \n', 423: ' print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n', 424: '#/function4xi \n', 425: '\n', 426: '# -------------------------------------------------------------------------------------------------\n', 427: '#function4xi function = "tailor2trace4xi" usage = "\n', 428: '# tailors trace \n', 429: '#" \n', 430: '# ------------------------------------------------------------------------------------------------- \n', 431: 'def tailor2trace4xi():\n', 432: ' global trace_object_count\n', 433: ' global PickleKB4Xi \n', 434: ' global t2xi\n', 435: ' \n', 436: ' print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n', 437: ' # print4xi.Print4Xi object at 0x0000000003715080 \n', 438: ' \n', 439: ' # ---------------------------------------------------------------------------------------------\n', 440: ' # Settings to tailor trace\n', 441: ' # ---------------------------------------------------------------------------------------------\n', 442: ' #set4xi setting = "\n', 443: ' KB4Tailoring = {\n', 444: " 'APU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4apu': 'NACK4XI',\n", 446: " 'get2samplerinfo4apu': 'NACK4XI',\n", 447: " 'retain2sampler4apu': 'NACK4XI',\n", 448: " 'release2sampler4apu': 'NACK4XI',\n", 449: " 'trace2sampler4apu': 'NACK4XI',\n", 450: " 'set2samplercallback4apu': 'NACK4XI',\n", 451: " 'set2sampler4apu': 'NACK4XI' \n", 452: ' } \n', 453: ' \n', 454: " default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n", 455: ' #"/\n', 456: ' \n', 457: ' # ---------------------------------------------------------------------------------------------\n', 458: ' # PROCESS KB4Tailoring\n', 459: ' # ---------------------------------------------------------------------------------------------\n', 460: ' keys2tailor = sorted(KB4Tailoring.keys())\n', 461: ' for key2tailor in keys2tailor:\n', 462: ' # --------------------------------------------------------------------------------- \n', 463: ' # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n', 464: ' # --------------------------------------------------------------------------------- \n', 465: " set_param2xi = 'NACK4XI' \n", 466: ' key_param = key2tailor \n', 467: ' t2xi.set_print_permission(key_param, set_param2xi)\n', 468: ' print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n', 469: ' # \n', 470: ' \n', 471: ' # ----------------------------------------------------------------------------------------- \n', 472: ' # EOF KEYS\n', 473: ' # ----------------------------------------------------------------------------------------- \n', 474: ' print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n', 475: ' #\n', 476: '\n', 477: ' \n', 478: '#/function4xi \n', 479: '\n', 480: ' \n', 481: '# -------------------------------------------------------------------------------------------------\n', 482: '#function4xi function = "print-trace4xi" usage = "\n', 483: '# print XML trace for sampler4apu test\n', 484: '#" \n', 485: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 486: '# ------------------------------------------------------------------------------------------------- \n', 487: 'def print2trace4xi(t2xi):\n', 488: ' \n', 489: '\n', 490: ' # -------------------------------------------------------------------------------------------------\n', 491: ' # SENSE \n', 492: ' # ------------------------------------------------------------------------------------------------- \n', 493: ' \n', 494: ' context2sense = {\n', 495: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-apu2sampler4xi5test.xml',\n", 496: ' \'name_space4xi\': \' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 497: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 498: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 499: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 500: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 501: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\\n\',\n', 502: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 503: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\\n\',\n', 504: " 'debug4xi': True}\n", 505: ' \n', 506: ' xml_trace_sense4xi(t2xi, context2sense)\n', 507: '\n', 508: ' # -------------------------------------------------------------------------------------------------\n', 509: ' # REASON \n', 510: ' # ------------------------------------------------------------------------------------------------- \n', 511: ' \n', 512: ' context2reason = {\n', 513: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-apu2sampler4xi5test.xml',\n", 514: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 515: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 516: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 517: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 518: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\\n\',\n', 519: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 520: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 521: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 522: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 523: " 'debug4xi': True}\n", 524: ' \n', 525: ' xml_trace_reason4xi(t2xi, context2reason)\n', 526: '\n', 527: ' # -------------------------------------------------------------------------------------------------\n', 528: ' # ACE \n', 529: ' # ------------------------------------------------------------------------------------------------- \n', 530: ' \n', 531: ' context2ace = {\n', 532: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-apu2sampler4xi5test.xml',\n", 533: ' \'name_space4xi\': \' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\\n\',\n', 534: ' \'xml_base4xi\': \' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\\n\',\n', 535: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 536: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\\n\',\n', 537: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 538: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\\n\',\n', 539: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 540: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 541: " 'debug4xi': True} \n", 542: ' \n', 543: ' xml_trace_ace4xi(t2xi, context2ace)\n', 544: '\n', 545: '\n', 546: ' # -------------------------------------------------------------------------------------------------\n', 547: ' # end of print2trace4xi \n', 548: ' # ------------------------------------------------------------------------------------------------- \n', 549: '#/function4xi\n', 550: ' \n', 551: '# -------------------------------------------------------------------------------------------------\n', 552: '#function4xi function = "apu2sampler4xi5test" usage = "\n', 553: '# tests sampler4apu\n', 554: '#" \n', 555: '#state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/\n', 556: '# ------------------------------------------------------------------------------------------------- \n', 557: 'def apu2sampler4xi5test():\n', 558: ' global t2xi\n', 559: ' global trace_object_count \n', 560: ' \n', 561: ' # --------------------------------------------------------------------------------------------- \n', 562: ' # INITIALIZE TRACE\n', 563: ' # --------------------------------------------------------------------------------------------- \n', 564: ' t2xi = Print4Xi()\n', 565: ' set2trace4xi() # trace all classes and functions in the system\n', 566: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 567: ' tailor2trace4xi() # tailor trace for this test \n', 568: ' try:\n', 569: ' # ---------------------------------------------------------------------------------------------\n', 570: ' # START TESTING \n', 571: ' # --------------------------------------------------------------------------------------------- \n', 572: " print('=' *33) \n", 573: " print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 574: " print('=' *33) \n", 575: ' # \n', 576: ' \n', 577: ' # ---------------------------------------------------------------------------------------------\n', 578: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 579: ' # --------------------------------------------------------------------------------------------- \n', 580: " print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) \n", 581: ' try:\n', 582: ' response4create2sampler = create2sampler4apu() \n', 583: ' keys2response = response4create2sampler.keys()\n', 584: ' for key2response in sorted(keys2response):\n', 585: " print(key2response, ' : ', response4create2sampler[key2response])\n", 586: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 587: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 588: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 589: ' # CODE2ERROR : 0\n', 590: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 591: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 592: ' # COUNT2REFERENCE : 1\n', 593: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: function fetch2programsource4apu at 0x02E15C00 ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:27 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: 08:25:28 02/18/15 FLE Standard Time ACE writing: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//index.html ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py' mode='r' encoding='cp1252' ACE writing: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//index.html ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe ACE writing: function trace2program4apu at 0x02E158E8 ACE writing: None ACE writing: function trace2program4apu at 0x02E158E8 ACE writing: 3 ACE writing: 1 ACE writing: PLATFORM ACE writing: BUFFER ACE writing: NACK2RETURN ACE writing: CONTEXT ACE writing: DATA2CALLBACK ACE writing: ACK2RETURN ACE writing: QUEUE ACE writing: PIPE ACE writing: SIZE4SOURCE ACE writing: DIRECTORY4SOURCE ACE writing: EVENT ACE writing: DEVICE ACE writing: CODE2ERROR ACE writing: FUNCTION2CALLBACK ACE writing: CODE4SOURCE ACE writing: LANGUAGE4SOURCE ACE writing: COUNT2REFERENCE ACE writing: COUNT4SOURCE ACE writing: COMMANDQUEUE ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: dict_keys(['.cpp', '.cl', '.c', '.py']) ACE writing: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE'] ACE writing: Python ACE writing: None ACE writing: Python ACE writing: // ----------------------------------------------------------------------------------------------------------------- ACE writing: // apu2dummy4xi5test.cpp ACE writing: // ----------------------------------------------------------------------------------------------------------------- ACE writing: #include stdlib.h ACE writing: #include stdio.h ACE writing: #include CL/opencl.h ACE writing: ACE writing: #define DEVID 0 ACE writing: #define DEVID2 1 ACE writing: ACE writing: // Program source ACE writing: const char* KernelSource = ACE writing: " __kernel void simple( __global float* A) { \n" ACE writing: " int tid = get_global_id(0); \n" ACE writing: " A[tid] = A[tid] + 5; \n" ACE writing: "} \n" ACE writing: " \n" ACE writing: "__kernel void simple2(__global float *A, int nLoops) { \n" ACE writing: " \n" ACE writing: " int tid = get_global_id(0); \n" ACE writing: " for (int i = 0; i nLoops; i++) { \n" ACE writing: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ACE writing: " } \n" ACE writing: "} \n" ACE writing: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ACE writing: " \n" ACE writing: " int tid = get_global_id(0); \n" ACE writing: " if (tid entries) \n" ACE writing: " B[tid] = 2 * A[tid]; \n" ACE writing: " \n" ACE writing: "} \n"; ACE writing: ACE writing: ACE writing: // native kernel data structure ACE writing: struct myNativeKernelData { ACE writing: float *inData; ACE writing: float *outData; ACE writing: int size; ACE writing: }; ACE writing: ACE writing: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ACE writing: void myNativeKernel(void *data) { ACE writing: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ACE writing: ACE writing: printf("Data passed to native kernel\n"); ACE writing: for (int i = 0; i NKData-size; i++) { ACE writing: if (i (NKData-size -5)) ACE writing: printf("n, x = %d %f\n",i,NKData-inData[i]); ACE writing: NKData-outData[i] = 2*NKData-inData[i]; ACE writing: } ACE writing: ACE writing: } ACE writing: /*/function4xi*/ ACE writing: ACE writing: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ACE writing: void printKernelTimes(cl_event event,char *eventName) { ACE writing: static cl_ulong baseTime = -1; ACE writing: cl_ulong sTime,eTime; ACE writing: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ACE writing: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ACE writing: ACE writing: // Set the base time and then subtract it to make the numbers easier to read ACE writing: if (baseTime == -1) ACE writing: baseTime = sTime; ACE writing: if (err != CL_SUCCESS) { ACE writing: printf("Failed to get times for %s\n",eventName); ACE writing: } ACE writing: else { ACE writing: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ACE writing: } ACE writing: } ACE writing: /*/function4xi*/ ACE writing: ACE writing: /*function4xi function = "OCLError" usage = "error code checking"*/ ACE writing: void OCLError(cl_int err, int line) { ACE writing: if (err != CL_SUCCESS) { ACE writing: printf("Error at line %d\n",line); ACE writing: exit(1); ACE writing: } ACE writing: } ACE writing: /*/function4xi*/ ACE writing: ACE writing: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ACE writing: __kernel void nbody_kern( ACE writing: float dt1, float eps, ACE writing: __global float4* pos_old, ACE writing: __global float4* pos_new, ACE writing: __global float4* vel, ACE writing: __local float4* pblock ACE writing: ) ACE writing: { ACE writing: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ACE writing: int gti = get_global_id(0); ACE writing: int ti = get_local_id(0); ACE writing: int n = get_global_size(0); ACE writing: int nt = get_local_size(0); ACE writing: int nb = n/nt; ACE writing: float4 p = pos_old[gti]; ACE writing: float4 v = vel[gti]; ACE writing: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ACE writing: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ACE writing: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ACE writing: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ACE writing: float4 p2 = pblock[j]; /* Read a cached particle position */ ACE writing: float4 d = p2 - p; ACE writing: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ACE writing: float f = p2.w*invr*invr*invr; ACE writing: a += f*d; /* Accumulate acceleration */ ACE writing: } ACE writing: ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ACE writing: } ACE writing: p += dt*v + 0.5f*dt*dt*a; ACE writing: v += dt*a; ACE writing: pos_new[gti] = p; ACE writing: vel[gti] = v; ACE writing: } ACE writing: /*/function4xi*/ ACE writing: ACE writing: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ACE writing: __kernel void nbody_kern( ACE writing: float dt1, float eps, ACE writing: __global float4* pos_old, ACE writing: __global float4* pos_new, ACE writing: __global float4* vel, ACE writing: __local float4* pblock, ACE writing: __global float4* pos2 ACE writing: ) { ACE writing: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ACE writing: int gti = get_global_id(0); ACE writing: int ti = get_local_id(0); ACE writing: int n = get_global_size(0); ACE writing: int nt = get_local_size(0); ACE writing: int nb = n/nt; ACE writing: float4 p = pos_old[gti]; ACE writing: float4 v = vel[gti]; ACE writing: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ACE writing: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ACE writing: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ACE writing: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ACE writing: float4 p2 = pblock[j]; /* Read a cached particle position */ ACE writing: float4 d = p2 - p; ACE writing: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ACE writing: float f = p2.w*invr*invr*invr; ACE writing: a += f*d; /* Accumulate acceleration */ ACE writing: } ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ACE writing: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ACE writing: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ACE writing: float4 p2 = pblock[j]; /* Read a cached particle position */ ACE writing: float4 d = p2 - p; ACE writing: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ACE writing: float f = p2.w*invr*invr*invr; ACE writing: a += f*d; /* Accumulate acceleration */ ACE writing: } ACE writing: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ACE writing: } ACE writing: /*/function4xi*/ ACE writing: ACE writing: /*function4xi function = "main" usage = "main"*/ ACE writing: int main() { ACE writing: // OpenCL Platform, Device etc vars ACE writing: cl_device_id *Devices; // OpenCL device ACE writing: cl_context Context; // OpenCL context ACE writing: static cl_platform_id Platform; // OpenCL platform ACE writing: cl_program Program; ACE writing: cl_command_queue *CommandQs; // OpenCL command queues ACE writing: cl_int err; ACE writing: ACE writing: // Get platform IDs ACE writing: err = clGetPlatformIDs( 1, Platform, NULL); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: // get all devices ACE writing: cl_uint nDevices = -1; ACE writing: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ACE writing: OCLError(err,__LINE__); ACE writing: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ACE writing: ACE writing: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ACE writing: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: // Create a compute context ACE writing: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ACE writing: OCLError(err,__LINE__); ACE writing: // Create a command queue ACE writing: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ACE writing: for (int i = 0; i nDevices; i++) { ACE writing: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ACE writing: OCLError(err,__LINE__); ACE writing: } ACE writing: ACE writing: // Create the compute program from the source buffer ACE writing: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: // Create the compute kernel from the program ACE writing: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: // kernel data vars ACE writing: float *a_h; // host memory used for original data and return data ACE writing: cl_mem a_d; // device memory used for input/output ACE writing: cl_mem b_d; // device memory used for output ACE writing: size_t entries = 64000000; // number of entries in the array ACE writing: size_t local = 1; ACE writing: int count = 100; ACE writing: ACE writing: a_h = (float *)malloc(entries*sizeof(float)); ACE writing: for (int i =0; i entries; i++) ACE writing: a_h[i] = (1 25) + 6; ACE writing: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ACE writing: OCLError(err,__LINE__); ACE writing: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: ACE writing: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ACE writing: OCLError(err,__LINE__); ACE writing: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ACE writing: OCLError(err,__LINE__); ACE writing: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ACE writing: OCLError(err,__LINE__); ACE writing: clSetKernelArg(Kernel2, 1, sizeof(int), count); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ACE writing: ACE writing: cl_event k2Event[1]; ACE writing: cl_event k1Event[1]; ACE writing: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ACE writing: OCLError(err, __LINE__); ACE writing: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: // ACE writing: // Now try enqueueing a native kernel ACE writing: // ACE writing: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ACE writing: cl_command_queue CPUQueue = NULL; ACE writing: for (int i = 0; i nDevices; i++) { ACE writing: cl_device_id qDevID; ACE writing: cl_device_type DevType; ACE writing: cl_device_exec_capabilities DevExecCap; ACE writing: ACE writing: // get the device attached to this queue ACE writing: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: // get the type of this device ACE writing: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: // compare the device_type for this device ACE writing: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ACE writing: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ACE writing: CPUQueue = CommandQs[i]; ACE writing: } ACE writing: } ACE writing: ACE writing: cl_event k3Event[1]; ACE writing: cl_event eventLists[2]; ACE writing: eventLists[0] = k2Event[0]; ACE writing: eventLists[1] = k1Event[0]; ACE writing: if (CPUQueue != NULL) { ACE writing: ACE writing: #ifndef NATIVEK ACE writing: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ACE writing: OCLError(err,__LINE__); ACE writing: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ACE writing: OCLError(err,__LINE__); ACE writing: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ACE writing: OCLError(err,__LINE__); ACE writing: ACE writing: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ACE writing: OCLError(err, __LINE__); ACE writing: #else ACE writing: // Allocate and populate the data structure for the nativeKernel ACE writing: struct myNativeKernelData NKData; ACE writing: NKData.size = entries; ACE writing: ACE writing: cl_mem memList[2]; ACE writing: memList[0] = a_d; ACE writing: memList[1] = b_d; ACE writing: ACE writing: void *memLocs[2]; ACE writing: memLocs[0] = (NKData.inData); ACE writing: memLocs[1] = (NKData.outData); ACE writing: ACE writing: // Enqueue the kernel ACE writing: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ACE writing: OCLError(err, __LINE__); ACE writing: #endif ACE writing: ACE writing: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: printf("Data from b_d\n"); ACE writing: for (int i = (entries - 5); i entries; i++) ACE writing: printf("n, x = %d %f\n",i,a_h[i]); ACE writing: } ACE writing: else { ACE writing: printf("No CPU device found\n"); ACE writing: } ACE writing: ACE writing: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ACE writing: OCLError(err, __LINE__); ACE writing: ACE writing: printf("Data from a_d, should be half of data from b_d\n"); ACE writing: for (int i = (entries - 5); i entries; i++) ACE writing: printf("n, x = %d %f\n",i,a_h[i]); ACE writing: ACE writing: printKernelTimes(k2Event[0],"Kernel 2"); ACE writing: printKernelTimes(k1Event[0],"Kernel 1"); ACE writing: printKernelTimes(k3Event[0],"Kernel 3"); ACE writing: ACE writing: // tidy up ACE writing: free(Devices); ACE writing: free(CommandQs); ACE writing: free(a_h); ACE writing: clReleaseMemObject(a_d); ACE writing: clReleaseMemObject(b_d); ACE writing: } ACE writing: /*/function4xi*/ ACE writing: #profile4xi profile = "11" / ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #program4xi program = "apu2sampler4xi5test.py" ACE writing: #abstract4xi abstract = "tests apu2sampler4xi.py"/ ACE writing: #verify4xi verification = "11" target = "apu2sampler4xi.py"/ ACE writing: #contextualize4xi context = "sampler4xi.py"/ ACE writing: #state4xi status = "NACK4review; NACK4tagging; NACK4moduletesting; ACK4systemtesting"/ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Public API ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #interface4xi interface = " ACE writing: __all__ = ['apu2sampler4xi5test'] ACE writing: #" ACE writing: #/ ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Standard Imports ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #standardize4xi standard = " ACE writing: import os ACE writing: import sys ACE writing: import threading ACE writing: import _thread ACE writing: ACE writing: import signal ACE writing: import itertools ACE writing: import weakref ACE writing: import logging ACE writing: #" ACE writing: #/ ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Scope4Xi imports ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #dragonize4xi dragonization = " ACE writing: import version4xi ACE writing: ACE writing: #" ACE writing: #/ ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Multiprocessing Imports ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #process4xi process = " ACE writing: import _multiprocessing ACE writing: #" ACE writing: #/ ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # DragonXi imports ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #dragonize4xi dragonization = " ACE writing: from pipe4xi import Pipe4Xi ACE writing: from platformids4xi import get2platformids4xi ACE writing: from queue4xi import Queue4Xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Command queue module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2commandqueue4xi import APU2CommandQueue4Xi ACE writing: from apu2commandqueue4xi import create2commandqueue4apu ACE writing: from apu2commandqueue4xi import flush2commandqueue4apu ACE writing: from apu2commandqueue4xi import finish2commandqueue4apu ACE writing: from apu2commandqueue4xi import get2commandqueueinfo4apu ACE writing: from apu2commandqueue4xi import release2commandqueue4apu ACE writing: from apu2commandqueue4xi import retain2commandqueue4apu ACE writing: from apu2commandqueue4xi import set2commandqueue4apu ACE writing: from apu2commandqueue4xi import trace2commandqueue4apu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Context module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2context4xi import APU2Context4Xi ACE writing: from apu2context4xi import create2context4apu ACE writing: from apu2context4xi import get2context4apu ACE writing: from apu2context4xi import release2context4apu ACE writing: from apu2context4xi import retain2context4apu ACE writing: from apu2context4xi import set2context4apu ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Device module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2device4xi import APU4Xi ACE writing: from apu2device4xi import init2apu4xi ACE writing: from apu2device4xi import set2apu4xi ACE writing: from apu2device4xi import get2apu4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Event module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2event4xi import APU2Event4Xi ACE writing: from apu2event4xi import create2event4apu ACE writing: from apu2event4xi import get2eventinfo4apu ACE writing: from apu2event4xi import release2event4apu ACE writing: from apu2event4xi import retain2event4apu ACE writing: from apu2event4xi import set2eventcallback4apu ACE writing: from apu2event4xi import set2event4apu ACE writing: from apu2event4xi import trace2event4apu ACE writing: from apu2event4xi import wait2event4apu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Image module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2image4xi import APU2Image4Xi ACE writing: from apu2image4xi import create2image4apu ACE writing: from apu2image4xi import get2imageinfo4apu ACE writing: from apu2image4xi import get2supportedimageformats4apu ACE writing: from apu2image4xi import manoeuvre2copyimage4apu ACE writing: from apu2image4xi import manoeuvre2copyimagetobuffer4apu ACE writing: from apu2image4xi import manoeuvre2copybuffertoimage4apu ACE writing: from apu2image4xi import manoeuvre2readimage4apu ACE writing: from apu2image4xi import manoeuvre2writeimage4apu ACE writing: from apu2image4xi import manoeuvre2mapimage4apu ACE writing: from apu2image4xi import copy2image4apu ACE writing: from apu2image4xi import copy2imagetobuffer4apu ACE writing: from apu2image4xi import copy2buffertoimage4apu ACE writing: from apu2image4xi import read2image4apu ACE writing: from apu2image4xi import map2image4apu ACE writing: from apu2image4xi import release2image4apu ACE writing: from apu2image4xi import retain2image4apu ACE writing: from apu2image4xi import set2imagecallback4apu ACE writing: from apu2image4xi import set2image4apu ACE writing: from apu2image4xi import trace2image4apu ACE writing: from apu2image4xi import wait2image4apu ACE writing: from apu2image4xi import write2image4apu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Sampler module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from apu2sampler4xi import APU2Sampler4Xi ACE writing: from apu2sampler4xi import create2sampler4apu ACE writing: from apu2sampler4xi import get2samplerinfo4apu ACE writing: from apu2sampler4xi import release2sampler4apu ACE writing: from apu2sampler4xi import retain2sampler4apu ACE writing: from apu2sampler4xi import set2samplercallback4apu ACE writing: from apu2sampler4xi import set2sampler4apu ACE writing: from apu2sampler4xi import trace2sampler4apu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Platform module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from platforminfo4xi import PlatformInfo4Xi ACE writing: from platforminfo4xi import init2platforminfo4xi ACE writing: from platforminfo4xi import set2platforminfo4xi ACE writing: from platforminfo4xi import get2platforminfo4xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Trace modules ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ACE writing: ACE writing: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ACE writing: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ACE writing: ACE writing: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ACE writing: from pickle2a4xi import Pickle2a4Xi ACE writing: from pickle2b4xi import Pickle2b4Xi ACE writing: from pickle2c4xi import Pickle2c4Xi ACE writing: from pickle2d4xi import Pickle2d4Xi ACE writing: from pickle2e4xi import Pickle2e4Xi ACE writing: from pickle2f4xi import Pickle2f4Xi ACE writing: from pickle2g4xi import Pickle2g4Xi ACE writing: from pickle2h4xi import Pickle2h4Xi ACE writing: from pickle2i4xi import Pickle2i4Xi ACE writing: from pickle2j4xi import Pickle2j4Xi ACE writing: from pickle2k4xi import Pickle2k4Xi ACE writing: from pickle2l4xi import Pickle2l4Xi ACE writing: from pickle2m4xi import Pickle2m4Xi ACE writing: from pickle2n4xi import Pickle2n4Xi ACE writing: from pickle2o4xi import Pickle2o4Xi ACE writing: from pickle2p4xi import Pickle2p4Xi ACE writing: from pickle2q4xi import Pickle2q4Xi ACE writing: from pickle2r4xi import Pickle2r4Xi ACE writing: from pickle2s4xi import Pickle2s4Xi ACE writing: from pickle2t4xi import Pickle2t4Xi ACE writing: from pickle2u4xi import Pickle2u4Xi ACE writing: from pickle2v4xi import Pickle2v4Xi ACE writing: from pickle2w4xi import Pickle2w4Xi ACE writing: from pickle2x4xi import Pickle2x4Xi ACE writing: from pickle2y4xi import Pickle2y4Xi ACE writing: from pickle2z4xi import Pickle2z4Xi ACE writing: from pickle2_4xi import Pickle2_4Xi ACE writing: ACE writing: ACE writing: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ACE writing: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ACE writing: from actor2c4xi import Actor2c4Xi ACE writing: from actor2d4xi import Actor2d4Xi ACE writing: from actor2e4xi import Actor2e4Xi ACE writing: from actor2f4xi import Actor2f4Xi ACE writing: from actor2g4xi import Actor2g4Xi ACE writing: from actor2h4xi import Actor2h4Xi ACE writing: from actor2i4xi import Actor2i4Xi ACE writing: from actor2j4xi import Actor2j4Xi ACE writing: from actor2k4xi import Actor2k4Xi ACE writing: from actor2l4xi import Actor2l4Xi ACE writing: from actor2m4xi import Actor2m4Xi ACE writing: from actor2n4xi import Actor2n4Xi ACE writing: from actor2o4xi import Actor2o4Xi ACE writing: from actor2p4xi import Actor2p4Xi ACE writing: from actor2q4xi import Actor2q4Xi ACE writing: from actor2r4xi import Actor2r4Xi ACE writing: from actor2s4xi import Actor2s4Xi ACE writing: from actor2t4xi import Actor2t4Xi ACE writing: from actor2u4xi import Actor2u4Xi ACE writing: from actor2v4xi import Actor2v4Xi ACE writing: from actor2w4xi import Actor2w4Xi ACE writing: from actor2x4xi import Actor2x4Xi ACE writing: from actor2y4xi import Actor2y4Xi ACE writing: from actor2z4xi import Actor2z4Xi ACE writing: from actor2_4xi import Actor2_4Xi ACE writing: from time4xi import time4xi # time stamp to events ACE writing: ACE writing: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ACE writing: from xml_trace_reason4xi import xml_trace_reason4xi ACE writing: from xml_trace_ace4xi import xml_trace_ace4xi ACE writing: #" ACE writing: #/ ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Global constants ACE writing: # ------------------------------------------------------------------------------------------------ ACE writing: #globalize4xi globalization = " ACE writing: ACE writing: global PickleKB4Xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Settings ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #set4xi setting = " ACE writing: PickleKB4Xi = { ACE writing: 'a': Pickle2a4Xi, ACE writing: # ACE writing: 'b': Pickle2b4Xi, ACE writing: # ACE writing: 'c': Pickle2c4Xi, ACE writing: # ACE writing: 'd': Pickle2d4Xi, ACE writing: # ACE writing: 'e': Pickle2e4Xi, ACE writing: 'f': Pickle2f4Xi, ACE writing: 'g': Pickle2g4Xi, ACE writing: 'h': Pickle2h4Xi, ACE writing: 'i': Pickle2i4Xi, ACE writing: 'j': Pickle2j4Xi, ACE writing: 'k': Pickle2k4Xi, ACE writing: 'l': Pickle2l4Xi, ACE writing: 'm': Pickle2m4Xi, ACE writing: 'n': Pickle2n4Xi, ACE writing: 'o': Pickle2o4Xi, ACE writing: 'p': Pickle2p4Xi, ACE writing: 'q': Pickle2q4Xi, ACE writing: 'r': Pickle2r4Xi, ACE writing: 's': Pickle2s4Xi, ACE writing: 't': Pickle2t4Xi, ACE writing: 'u': Pickle2u4Xi, ACE writing: 'v': Pickle2v4Xi, ACE writing: 'w': Pickle2w4Xi, ACE writing: 'x': Pickle2x4Xi, ACE writing: 'y': Pickle2y4Xi, ACE writing: 'z': Pickle2z4Xi, ACE writing: '_': Pickle2_4Xi} ACE writing: #" ACE writing: #"/ ACE writing: ACE writing: ACE writing: # ---------------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ACE writing: #" ACE writing: # ---------------------------------------------------------------------------------------------------------- ACE writing: def set2trace4xi(): ACE writing: global t2xi ACE writing: global trace_object_count ACE writing: global PickleKB4Xi ACE writing: ACE writing: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ACE writing: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ACE writing: # print4xi.Print4Xi object at 0x0000000003715080 ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # A, B .... _ ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: keys2pickledb = sorted(PickleKB4Xi.keys()) ACE writing: for key2pickledb in keys2pickledb: ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # LETTERS ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print('=' *33) ACE writing: # print("STARTING LETTER : ", key2pickledb) ACE writing: # print('=' *33) ACE writing: ACE writing: dictionary2pickle = PickleKB4Xi[key2pickledb] ACE writing: # print("STARTING DICTIONARY: ", dictionary2pickle) ACE writing: # print('~' *33) ACE writing: # ACE writing: keys2dictionary = sorted(dictionary2pickle.keys()) ACE writing: ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: for key2dictionary in keys2dictionary: ACE writing: # ------------------------------------------------------------------------------------- ACE writing: # DICTIONARY ACE writing: # ------------------------------------------------------------------------------------- ACE writing: # print('~' *33) ACE writing: object2pickle = key2dictionary ACE writing: # print("STARTING OBJECT: ", object2pickle) ACE writing: # print('~' *33) ACE writing: # pickle4xi(object2pickle) ACE writing: # print('~' *33) ACE writing: # print("PICKLED object: ", object2pickle) ACE writing: # PICKLED object: _C4Xi, ACE writing: # --------------------------------------------------------------------------------- ACE writing: # Mark those with NACK4XI to be traced ! ACE writing: # --------------------------------------------------------------------------------- ACE writing: if dictionary2pickle[key2dictionary] == 'NACK4XI': ACE writing: set_param2xi = True ACE writing: key_param = object2pickle ACE writing: t2xi.set_print_permission(key_param, set_param2xi) ACE writing: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ACE writing: # ACE writing: else: ACE writing: pass ACE writing: # --------------------------------------------------------------------------------- ACE writing: # END OF DICTIONARY ACE writing: # --------------------------------------------------------------------------------- ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # END OF LETTERS ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print('~' *33) ACE writing: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ACE writing: # print('~' *33) ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print('=' *33) ACE writing: # print("COMPLETED LETTER : ", key2pickledb) ACE writing: # print('=' *33) ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ACE writing: print('=' *33) ACE writing: #/function4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "deny2trace4xi" usage = " ACE writing: # deny trace using pickle4xi functions ! ACE writing: #" ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def deny2trace4xi(): ACE writing: global t2xi ACE writing: global trace_object_count ACE writing: global PickleKB4Xi ACE writing: ACE writing: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ACE writing: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ACE writing: # print4xi.Print4Xi object at 0x0000000003715080 ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # A, B .... _ ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: keys2pickledb = sorted(PickleKB4Xi.keys()) ACE writing: for key2pickledb in keys2pickledb: ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # LETTERS ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ACE writing: dictionary2pickle = PickleKB4Xi[key2pickledb] ACE writing: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ACE writing: keys2dictionary = sorted(dictionary2pickle.keys()) ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: for key2dictionary in keys2dictionary: ACE writing: ACE writing: # ------------------------------------------------------------------------------------- ACE writing: # DICTIONARY ACE writing: ACE writing: object2pickle = key2dictionary ACE writing: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ACE writing: # pickle4xi(object2pickle) ACE writing: # print("STEP: PICKLED object: ", object2pickle) ACE writing: # PICKLED object: _C4Xi, ACE writing: ACE writing: # --------------------------------------------------------------------------------- ACE writing: # ACK4XI = tested .i.e. NOT to be traced! ACE writing: # --------------------------------------------------------------------------------- ACE writing: set_param2xi = 'ACK4XI' ACE writing: key_param = object2pickle ACE writing: t2xi.set_print_permission(key_param, set_param2xi) ACE writing: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ACE writing: ACE writing: dictionary2pickle[key2dictionary] = 'ACK4XI' ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------- ACE writing: # END OF DICTIONARY ACE writing: # --------------------------------------------------------------------------------- ACE writing: # print('~' *33) ACE writing: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ACE writing: # print('~' *33) ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # END OF LETTERS ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ACE writing: # ACE writing: ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ACE writing: # _, a ... z ACE writing: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ACE writing: #/function4xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "tailor2trace4xi" usage = " ACE writing: # tailors trace ACE writing: #" ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def tailor2trace4xi(): ACE writing: global trace_object_count ACE writing: global PickleKB4Xi ACE writing: global t2xi ACE writing: ACE writing: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ACE writing: # print4xi.Print4Xi object at 0x0000000003715080 ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # Settings to tailor trace ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: #set4xi setting = " ACE writing: KB4Tailoring = { ACE writing: 'APU2Sampler4Xi': 'NACK4XI', ACE writing: 'create2sampler4apu': 'NACK4XI', ACE writing: 'get2samplerinfo4apu': 'NACK4XI', ACE writing: 'retain2sampler4apu': 'NACK4XI', ACE writing: 'release2sampler4apu': 'NACK4XI', ACE writing: 'trace2sampler4apu': 'NACK4XI', ACE writing: 'set2samplercallback4apu': 'NACK4XI', ACE writing: 'set2sampler4apu': 'NACK4XI' ACE writing: } ACE writing: ACE writing: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ACE writing: #"/ ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PROCESS KB4Tailoring ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: keys2tailor = sorted(KB4Tailoring.keys()) ACE writing: for key2tailor in keys2tailor: ACE writing: # --------------------------------------------------------------------------------- ACE writing: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ACE writing: # --------------------------------------------------------------------------------- ACE writing: set_param2xi = 'NACK4XI' ACE writing: key_param = key2tailor ACE writing: t2xi.set_print_permission(key_param, set_param2xi) ACE writing: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ACE writing: # ACE writing: ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: # EOF KEYS ACE writing: # ----------------------------------------------------------------------------------------- ACE writing: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ACE writing: # ACE writing: ACE writing: ACE writing: #/function4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "print-trace4xi" usage = " ACE writing: # print XML trace for sampler4apu test ACE writing: #" ACE writing: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def print2trace4xi(t2xi): ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # SENSE ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: context2sense = { ACE writing: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-apu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www..com/sense/sw/owl/multiprocessing4apu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ACE writing: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ACE writing: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ACE writing: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ACE writing: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of APU./rdfs:comment\n', ACE writing: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ACE writing: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of APU sensed./rdfs:comment\n', ACE writing: 'debug4xi': True} ACE writing: ACE writing: xml_trace_sense4xi(t2xi, context2sense) ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # REASON ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: context2reason = { ACE writing: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-apu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www.dragonxi.com/reason/sw/owl/multiprocessing4apu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ACE writing: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ACE writing: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ACE writing: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of APU./rdfs:comment\n', ACE writing: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ACE writing: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ACE writing: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ACE writing: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ACE writing: 'debug4xi': True} ACE writing: ACE writing: xml_trace_reason4xi(t2xi, context2reason) ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # ACE ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: context2ace = { ACE writing: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-apu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www.dragonxi.com/ace/sw/owl/multiprocessing4apu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourdragonxi.org/web/lib/owl/multiprocessing4apu.owl"\n', ACE writing: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ACE writing: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of APU./rdfs:comment\n', ACE writing: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ACE writing: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of APU./rdfs:comment\n', ACE writing: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ACE writing: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ACE writing: 'debug4xi': True} ACE writing: ACE writing: xml_trace_ace4xi(t2xi, context2ace) ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # end of print2trace4xi ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #/function4xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "apu2sampler4xi5test" usage = " ACE writing: # tests sampler4apu ACE writing: #" ACE writing: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def apu2sampler4xi5test(): ACE writing: global t2xi ACE writing: global trace_object_count ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # INITIALIZE TRACE ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: t2xi = Print4Xi() ACE writing: set2trace4xi() # trace all classes and functions in the system ACE writing: deny2trace4xi() # deny trace for all classes and functions in the system ACE writing: tailor2trace4xi() # tailor trace for this test ACE writing: try: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # START TESTING ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 1A/700) OF APU2SAMPLER4XI5TEST - STARTED ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 2A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: response4create2sampler = create2sampler4apu() ACE writing: keys2response = response4create2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4create2sampler[key2response]) ACE writing: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039A76C8 ACE writing: # NACK2RETURN : ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ACE writing: except: ACE writing: print('(Step 2Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU *** ', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 3B1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR APU ', time4xi()) ACE writing: print('=' *33) ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['NORMALIZATION'] = 0 ACE writing: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ACE writing: task4getinfo2sampler ['FILTERINGMODE'] = 0 ACE writing: try: ACE writing: response4samplerinfo2apu = get2samplerinfo4apu(task4getinfo2sampler) ACE writing: print('(Step 3B2/700) OF APU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR APU ', time4xi()) ACE writing: keys2response = response4samplerinfo2apu.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4samplerinfo2apu[key2response]) ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # NORMALIZATION : CL_TRUE ACE writing: ACE writing: except: ACE writing: print('(Step 3Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR APU', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 3C1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR APU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: response4getinfo2sampler = get2samplerinfo4apu() ACE writing: keys2response = response4getinfo2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4getinfo2sampler[key2response]) ACE writing: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ACE writing: # NACK2RETURN : ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ACE writing: except: ACE writing: print('(Step 3Z3/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR APU ***', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 4A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (1) GET PLATFORM IDs TO SET CONTEXT ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 4B/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ACE writing: print('=' *33) ACE writing: platform2xi = {} ACE writing: try: ACE writing: platform2xi = get2platformids4xi() ACE writing: print('(Step 4B/33) OF APU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ACE writing: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: ACE writing: except: ACE writing: print('(Step 4Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (2) INITIALIZE DEVICE ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 2A/33) OF APU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4APU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: device2apu = init2apu4xi() ACE writing: print('(Step 2B/33) OF APU2SAMPLER4XI5TEST - INITIALIZED DEVICE4APU TO: ', device2apu) ACE writing: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: ACE writing: except: ACE writing: print('(Step 2Z/33) OF APU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4APU', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (3) CREATE CONTEXT ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 3A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4APU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: context2apu = create2context4apu() ACE writing: print('(Step 3B/700) OF APU2SAMPLER4XI5TEST - CREATED CONTEXT4APU: ', context2apu) ACE writing: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ACE writing: ACE writing: except: ACE writing: print('(Step 3Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4APU', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (4) INITIALIZE TASK DICTIONARY ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler = {} ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (5) DEFINE CONTEXT - REQUIRED ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['CONTEXT'] = context2apu ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (6) DEFINE DEVICE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['DEVICE'] = device2apu ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (7) DEFINE PROPERTIES - NONE ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['PROPERTIES'] = None ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (8) DEFINE ERROR CODE - REQUIRED ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['CODE2ERROR'] = 0 ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (9) SET QUEUE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['QUEUE'] = None ACE writing: print('(Step 9A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['QUEUE'] = Queue4Xi() ACE writing: print('(Step 9B/700) OF APU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4APU: ', task4set2sampler ['QUEUE']) ACE writing: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ACE writing: ACE writing: except: ACE writing: print('(Step 9Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (10) SET PIPE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['PIPE'] = None ACE writing: print('(Step 10A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['PIPE'] = Pipe4Xi() ACE writing: print('(Step 10B/700) OF APU2SAMPLER4XI5TEST - PIPE OF SAMPLER4APU: ', task4set2sampler ['PIPE']) ACE writing: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ACE writing: ACE writing: except: ACE writing: print('(Step 10Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (11) SET REST ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['COMMANDQUEUE'] = None ACE writing: print('(Step 11A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ACE writing: print('(Step 11B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ACE writing: # ACE writing: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ACE writing: print('(Step 11C/700) OF APU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4APU: ', task4set2sampler ['NORMALIZATION']) ACE writing: # ACE writing: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ACE writing: print('(Step 11D/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ACE writing: # ACE writing: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ACE writing: print('(Step 11E/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ACE writing: # ACE writing: ACE writing: except: ACE writing: print('(Step 11Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (11) SET SAMPLER - FINALLY! ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: response4set2sampler = {} ACE writing: print('(Step 11F/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: response4set2sampler = set2sampler4apu(task4set2sampler) ACE writing: ACE writing: keys2response = response4set2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4set2sampler[key2response]) ACE writing: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ACE writing: # BUFFER : {'CODE2ERROR': 0 ... ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000038CF5C8 ACE writing: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 11Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4APU *** ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: task4release2sampler = {} ACE writing: task4release2sampler ['COUNT2REFERENCE'] = 1 ACE writing: response4release2sampler = {} ACE writing: ACE writing: print('(Step 12A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4release2sampler = release2sampler4apu(task4release2sampler) ACE writing: ACE writing: keys2response = response4release2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4release2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 0 ACE writing: ACE writing: except: ACE writing: print('(Step 12Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: ACE writing: print('(Step 12C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = get2samplerinfo4apu (task4getinfo2sampler) ACE writing: keys2response = response4getinfo2sampler.keys() ACE writing: ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4getinfo2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 0 ACE writing: ACE writing: except: ACE writing: print('(Step 12Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4retain2sampler = {} ACE writing: task4retain2sampler ['COUNT2REFERENCE'] = 1 ACE writing: response4retain2sampler = {} ACE writing: print('(Step 13A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ACE writing: try: ACE writing: response4retain2sampler = retain2sampler4apu(task4retain2sampler) ACE writing: ACE writing: keys2response = response4retain2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4retain2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 1 ACE writing: ACE writing: except: ACE writing: print('(Step 13Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (14) SAMPLER CALLBACK ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: print('(Step 14A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF APU ', time4xi()) ACE writing: try: ACE writing: response4setcallback2sampler = set2samplercallback4apu() ACE writing: print('(Step 14B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF APU TO: ', response4setcallback2sampler) ACE writing: # function trace2sampler4apu at 0x00000000039676C8 ACE writing: except: ACE writing: print('(Step 14Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF APU ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE I: TRACE FUNCTION TESTS ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 15A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ACE writing: print('=' *33) ACE writing: trace2apu = None ACE writing: try: ACE writing: trace2apu = trace2sampler4apu() ACE writing: print('(Step 15B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ACE writing: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {} ACE writing: ACE writing: except: ACE writing: print('(Step 15Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 105A/700) OF APU2SAMPLER4XI5TEST - CREATING SAMPLER4APU OBJECT ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: try: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # CREATE WITH OBJECT ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: samplerobject2apu = APU2Sampler4Xi() ACE writing: print('(Step 105B/700) OF APU2SAMPLER4XI5TEST - CREATED SAMPLER4APU OBJECT: ', samplerobject2apu) ACE writing: # apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02320 ACE writing: ACE writing: except: ACE writing: print('(Step 105Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4APU OBJECT') ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - GET METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 106A1/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ACE writing: try: ACE writing: response4get2samplerinfo = samplerobject2apu.get2samplerinfo() ACE writing: ACE writing: keys2response = response4get2samplerinfo.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4get2samplerinfo[key2response]) ACE writing: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4apu-failed ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ACE writing: # NACK2RETURN : ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ACE writing: # (Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE 04:32:25 11/07/11 Pacific Standard Time ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # COUNT2REFERENCE : 1 ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # NORMALIZATION : CL_TRUE ACE writing: ACE writing: except: ACE writing: print('(Step 106Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['NORMALIZATION'] = 0 ACE writing: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ACE writing: task4getinfo2sampler ['FILTERINGMODE'] = 0 ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: response4getinfo2sampler = {} ACE writing: print('(Step 106A2/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = samplerobject2apu.get2samplerinfo(task4getinfo2sampler) ACE writing: keys2response = response4getinfo2sampler.keys() ACE writing: ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4getinfo2sampler[key2response]) ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # COUNT2REFERENCE : 1 ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # NORMALIZATION : CL_TRUE ACE writing: ACE writing: except: ACE writing: print('(Step 106Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - SET METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 107A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (4) INITIALIZE TASK DICTIONARY ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler = {} ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (5) DEFINE CONTEXT - REQUIRED ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: task4set2sampler ['CONTEXT'] = context2apu ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (6) DEFINE DEVICE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: task4set2sampler ['DEVICE'] = device2apu ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (7) DEFINE ERROR CODE - REQUIRED ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['CODE2ERROR'] = 0 ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (8) QUEUE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 108A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ACE writing: task4set2sampler ['QUEUE'] = None ACE writing: try: ACE writing: task4set2sampler ['QUEUE'] = Queue4Xi() ACE writing: print('(Step 108B/700) OF APU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ACE writing: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ACE writing: ACE writing: except: ACE writing: print('(Step 108Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (9) PIPE ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 109A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ACE writing: task4set2sampler ['PIPE'] = None ACE writing: try: ACE writing: task4set2sampler ['PIPE'] = Pipe4Xi() ACE writing: print('(Step 109B/700) OF APU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ACE writing: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ACE writing: ACE writing: except: ACE writing: print('(Step 109Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (10) SET COMMAND QUEUE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['COMMANDQUEUE'] = None ACE writing: print('(Step 110A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4apu() ACE writing: print('(Step 110B/700) OF APU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4APU: ', task4set2sampler ['COMMANDQUEUE']) ACE writing: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 110Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (11) SET ADDRESSINGMODE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ACE writing: print('(Step 111B/700) OF APU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4APU: ', task4set2sampler ['ADDRESSINGMODE']) ACE writing: # CL_ADDRESS_CLAMP_TO_EDGE ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (12) SET FILTERINGMODE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4APU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ACE writing: print('(Step 121B/700) OF APU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4APU: ', task4set2sampler ['FILTERINGMODE']) ACE writing: # CL_FILTER_LINEAR ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4APU ', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 111A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR APU: ', time4xi()) ACE writing: try: ACE writing: response4set2sampler = samplerobject2apu.set2sampler(task4set2sampler) ACE writing: keys2response = response4set2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4set2sampler[key2response]) ACE writing: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ACE writing: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_LINEAR ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ACE writing: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ACE writing: ACE writing: except: ACE writing: print('(Step 111Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR APU: ', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - RELEASE SAMPLER ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 121A/700) OF APU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: task4release2sampler = {} ACE writing: task4release2sampler ['COUNT2REFERENCE'] = 1 ACE writing: try: ACE writing: response4release2sampler = samplerobject2apu.release2sampler(task4release2sampler) ACE writing: keys2response = response4release2sampler.keys() ACE writing: ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4release2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 0 ACE writing: ACE writing: except: ACE writing: print('(Step 121Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - RETAIN SAMPLER ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 122A/700) OF APU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ACE writing: print('=' *33) ACE writing: task4retain2sampler = {} ACE writing: task4retain2sampler ['COUNT2REFERENCE'] = 1 ACE writing: try: ACE writing: response4retain2sampler = samplerobject2apu.retain2sampler(task4retain2sampler) ACE writing: keys2response = response4retain2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4retain2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 1 ACE writing: ACE writing: except: ACE writing: print('(Step 122Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 123A/700) OF APU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for APU ', time4xi()) ACE writing: # ACE writing: try: ACE writing: xi2apu = APU2Sampler4Xi() ACE writing: response4create2sampler = xi2apu.create2sampler() ACE writing: keys2response = response4create2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4create2sampler[key2response]) ACE writing: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B- ACE writing: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ACE writing: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CODE2ERROR : 0 ACE writing: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ACE writing: # COUNT2REFERENCE : 1 ACE writing: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4apu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4apu at 0x00000000039676C8 ACE writing: # NACK2RETURN : ACE writing: # NORMALIZATION : CL_TRUE ACE writing: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ACE writing: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ACE writing: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ACE writing: ACE writing: except: ACE writing: print('(Step 123Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for APU ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 124A/700) OF APU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2APU: ', xi2apu) ACE writing: # ACE writing: try: ACE writing: ACE writing: callback2apu = xi2apu.set2samplercallback() ACE writing: print('(Step 124B/700) OF APU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2apu) ACE writing: # function trace2sampler4apu at 0x00000000039676C8 ACE writing: ACE writing: except: ACE writing: print('(Step 124Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - TRACE SAMPLERS ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 125A/25) OF APU2SAMPLER4XI5TEST - TRYING TO TRACE APU: ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: ACE writing: trace2apu = None ACE writing: try: ACE writing: trace2apu = xi2apu.trace2sampler() ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 125B/25) OF APU2SAMPLER4XI5TEST - TRACE2APU: ', trace2apu) ACE writing: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4apu-failed {} ACE writing: ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 125Z1/25) OF APU2SAMPLER4XI5TEST *** FAILED TO TRACE APU: ', trace2apu) ACE writing: ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4release2sampler = {} ACE writing: task4release2sampler ['COUNT2REFERENCE'] = 1 ACE writing: response4release2sampler = {} ACE writing: ACE writing: print('(Step 133A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4release2sampler = xi2apu.release2sampler(task4release2sampler) ACE writing: ACE writing: keys2response = response4release2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4release2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 0 ACE writing: except: ACE writing: print('(Step 133Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF APU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: response4getinfo2sampler = {} ACE writing: print('(Step 133C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ACE writing: keys2response = response4getinfo2sampler.keys() ACE writing: ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4getinfo2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 0 ACE writing: except: ACE writing: print('(Step 133Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4retain2sampler = {} ACE writing: task4retain2sampler ['COUNT2REFERENCE'] = 1 ACE writing: response4retain2sampler = {} ACE writing: print('(Step 134A/700) OF APU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ACE writing: try: ACE writing: response4retain2sampler = xi2apu.retain2sampler(task4retain2sampler) ACE writing: ACE writing: keys2response = response4retain2sampler.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4retain2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 1 ACE writing: except: ACE writing: print('(Step 134Z1/700) OF APU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF APU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: response4getinfo2sampler = {} ACE writing: print('(Step 134C/700) OF APU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = xi2apu.get2samplerinfo (task4getinfo2sampler) ACE writing: keys2response = response4getinfo2sampler.keys() ACE writing: ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4getinfo2sampler[key2response]) ACE writing: # COUNT2REFERENCE : 1 ACE writing: ACE writing: except: ACE writing: print('(Step 134Z2/700) OF APU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF APU DEVICE ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - SENSE SAMPLER ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 170A/700) OF APU2SAMPLER4XI5TEST - SENSING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2apu.sense()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 170B/700) OF APU2SAMPLER4XI5TEST - SENSED ', time4xi()) ACE writing: # {'classvariable2apu-of-APU2Sampler4Xi': 4, 'object': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 170Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - REASON SAMPLER ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 171A/700) OF APU2SAMPLER4XI5TEST - REASONING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2apu.reason()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 171B/700) OF APU2SAMPLER4XI5TEST - REASONED ', time4xi()) ACE writing: # {'object-reason-object4xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-APU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 171Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - ACE SAMPLER ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 172A/700) OF APU2SAMPLER4XI5TEST - ACING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2apu.ace()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 172B/700) OF APU2SAMPLER4XI5TEST - ACED ', time4xi()) ACE writing: # {'cores-of-APU2Sampler4Xi': 4, 'object8xi': apu2sampler4xi.APU2Sampler4Xi object at 0x0000000003B02F98} ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 172Z/700) OF APU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # DONE - ALL TESTS ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 174/700) OF APU2SAMPLER4XI5TEST - DONE! ', time4xi()) ACE writing: # ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 175/700) OF APU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ACE writing: finally: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # Print Trace ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print2trace4xi(t2xi) ACE writing: ACE writing: ACE writing: #/function4xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "main" usage = " ACE writing: # main function for apu2sampler4xi5test ACE writing: #" ACE writing: #state4xi status = "ACK4tagging; ACK4moduletesting; NACK4systemtesting"/ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def main(): ACE writing: ACE writing: print('=' *33) ACE writing: print("(Step 0A/700) OF APU2SAMPLER4XI5TEST - SENSING IT WITH YOURDRAGONXI!", time4xi()) ACE writing: # ACE writing: print('=' *33) ACE writing: ACE writing: apu2sampler4xi5test() ACE writing: ACE writing: print('=' *33) ACE writing: print("(Step 0B/700) OF APU2SAMPLER4XI5TEST - SENSED IT WITH YOURDRAGONXI!", time4xi()) ACE writing: # ACE writing: ACE writing: print('=' *33) ACE writing: ACE writing: #/function4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # __main__ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: if __name__ == '__main__': ACE writing: main() ACE writing: #/program4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Recorded History ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #record4xi record = " ACE writing: # apu2sampler4xi5test.txt ACE writing: # sense-apu2sampler4xi5test.xml ACE writing: # reason-apu2sampler4xi5test.xml ACE writing: # ace-apu2sampler4xi5test.xml ACE writing: #" ACE writing: # ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Legal Notice ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #protect4xi protection = "copyright" ACE writing: # owner = "Small Smart" ACE writing: # rights = "All rights reserved" ACE writing: # state = "California" ACE writing: # country = "United States of America" ACE writing: # codes = "Codes established in California and applicable to corporations in California" ACE writing: # compliance = "The California Law" ACE writing: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ACE writing: #/ ACE writing: ACE writing: ACE writing: ACE writing: #end4xi end = " ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # end of apu2sampler4xi5test.py ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #" ACE writing: #/ ACE writing: ('e://scope4xi//041721//zap//lib//a//a2scope4xi', '.txt') ACE writing: ('e://scope4xi//041721//zap//lib//a//index', '.html') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2buffer4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2commandqueue4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2context4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2device4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2event4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2image4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2kernel4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2program4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu2sampler4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\apu3image4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//__pycache__\\version4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//a//bin\\apu2dummy4xi5test', '.exe') ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210) ACE writing: None ACE writing: (pipeconnection4xi.PipeConnection4Xi object at 0x02EDE3B0, pipeconnection4xi.PipeConnection4Xi object at 0x02EDE210) ACE writing: None ACE writing: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'} ACE writing: {} ACE writing: {} ACE writing: {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'} ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//a2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//a//apu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//apu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//a//index.html ACE writing: e://scope4xi//041721//zap//lib//a//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\apu3image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//a//bin\apu2dummy4xi5test.exe ACE writing: queue4xi.Queue4Xi object at 0x02ED9EB0 ACE writing: None ACE writing: queue4xi.Queue4Xi object at 0x02ED9EB0 ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445} ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//a//apu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//a//apu2sampler4xi5test.py': 1445} ACE writing: {} ACE writing: {'DATA2CALLBACK': {'METHOD': 'create2programwithsource4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4apu-failed ACE writing: None ACE writing: {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'BUFFER': {'FUNCTION2CALLBACK': function trace2buffer4apu at 0x02DB8348, 'CODE2ERROR': 0, 'NACK2RETURN': ' ', 'CONTEXT': {'PLATFORM': {'max2entries': 1, 'nack2return': ' ', 'available2platform': 1, 'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-'}, 'SIZE2PRIVATE': 0, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'FUNCTION2CALLBACK': function trace2context4apu at 0x02CDD588, 'PROPERTIES': None, 'DATA2CALLBACK': {'METHOD': 'create2context4apu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4apu-failed --------------------------------- xml_trace_ace4xi: closed ACE XML file --------------------------------- (Step 0B/700) OF APU2PROGRAM4XI5TEST - SENSED IT WITH YOURDRAGONXI! 08:25:30 02/18/15 FLE Standard Time